Class TaskQueue
A queue which delays processing of Tasks.
Inherited Members
Namespace: Microsoft.XboxStudios .GameStateTracker
Assembly: GameStateTracker.Core.dll
Syntax
public sealed class TaskQueue
Properties
View SourceIsCompleted
Gets a value indicating whether or not the task queue is completed.
Declaration
public bool IsCompleted { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
View SourceEnqueue(Action)
Adds to the queue of delayed work.
Declaration
public void Enqueue(Action work)
Parameters
Type | Name | Description |
---|---|---|
Action | work | The action to add. |
Enqueue(Func<Task>)
Adds to the queue of delayed work.
Declaration
public void Enqueue(Func<Task> work)
Parameters
View SourceEnqueue<T>(Func<IEnumerable<T>>)
Adds to the queue of delayed work.
Declaration
public void Enqueue<T>(Func<IEnumerable<T>> work)
Parameters
Type | Name | Description |
---|---|---|
Func<IEnumerable<T>> | work | The enumeration to process. |
Type Parameters
Name | Description |
---|---|
T | The object type. |
GetAwaiter()
Gets an object that waits for the completion of the task queue.
Declaration
public TaskAwaiter GetAwaiter()
Returns
Type | Description |
---|---|
Task |
An awaitable object. |