Class BackgroundTaskQueue
Implements background tasks queue.
public class BackgroundTaskQueue : BaseObject, IBaseObject
- Inheritance
-
BackgroundTaskQueue
- Implements
Properties
- HasTasks
Gets a value indicating whether the queue has tasks.
Methods
- DequeueAsync(CancellationToken)
Dequeue and execute tasks.
- Enqueue(Func<Task>)
Enqueue a task.