IBackgroundTaskQueue.DequeueAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Wait for a signal of an enqueued work item to be processed.
public System.Threading.Tasks.Task<Func<System.Threading.CancellationToken,System.Threading.Tasks.Task>> DequeueAsync(System.Threading.CancellationToken cancellationToken);
abstract member DequeueAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Func<System.Threading.CancellationToken, System.Threading.Tasks.Task>>
Public Function DequeueAsync (cancellationToken As CancellationToken) As Task(Of Func(Of CancellationToken, Task))
Parameters
- cancellationToken
- CancellationToken
CancellationToken used to cancel the wait.
Returns
A function taking a cancellation token that needs to be processed.