PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Caching.​Implementation Namespace/Caching­Backend Class/Caching­Backend Methods/Caching­Backend.​When­Background­Tasks­Completed Method

CachingBackend.WhenBackgroundTasksCompleted Method

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

Namespace:  PostSharp.Patterns.Caching.Implementation
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public virtual 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