PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Backends.​Redis Namespace / Redis­Caching­Backend Class / Redis­Caching­Backend Methods / Redis­Caching­Backend.​When­Background­Tasks­Completed Method

RedisCachingBackend.WhenBackgroundTasksCompleted Method

Returns a Task that is signaled to the complete state when all background tasks have completed.

Namespace:  PostSharp.Patterns.Caching.Backends.Redis
Assembly:  PostSharp.Patterns.Caching.Backends.Redis (in PostSharp.Patterns.Caching.Backends.Redis.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
public override Task WhenBackgroundTasksCompleted(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.Threading.CancellationToken
A CancellationToken.

Return Value

Type: Task
A Task that is signaled to the complete state when all background tasks have completed
Remarks

Other background tasks may possibly be enqueued between the time the returned Task has been signaled and the time the signal is processed by the caller.

See Also