Open sandboxFocus

Method WhenBackgroundTasksCompleted

WhenBackgroundTasksCompleted(CancellationToken)

Returns a Task that completes when all enqueued background tasks complete.

Declaration
public Task WhenBackgroundTasksCompleted(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken

A Metalama.Patterns.Caching.Implementation.BackgroundTaskScheduler.DisposeCancellationToken.

Returns
Type Description
Task

A Task that completes when all enqueued background tasks complete.