Open sandboxFocus

Method EnqueueBackgroundTask

EnqueueBackgroundTask(Func<CancellationToken, ValueTask>)

Declaration
public void EnqueueBackgroundTask(Func<CancellationToken, ValueTask> task)
Parameters
Type Name Description
Func<CancellationToken, ValueTask> task

EnqueueBackgroundTask(Func<CancellationToken, Task>)

Enqueues a background task.

Declaration
public void EnqueueBackgroundTask(Func<CancellationToken, Task> task)
Parameters
Type Name Description
Func<CancellationToken, Task> task

A function creating a Task.