Show / Hide Table of Contents

Class TaskQueue

A queue which delays processing of Tasks.

Inheritance
object
TaskQueue
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.GameStateTracker
Assembly: GameStateTracker.Core.dll
Syntax
public sealed class TaskQueue

Properties

View Source

IsCompleted

Gets a value indicating whether or not the task queue is completed.

Declaration
public bool IsCompleted { get; }
Property Value
Type Description
bool

Methods

View Source

Enqueue(Action)

Adds to the queue of delayed work.

Declaration
public void Enqueue(Action work)
Parameters
Type Name Description
Action work

The action to add.

View Source

Enqueue(Func<Task>)

Adds to the queue of delayed work.

Declaration
public void Enqueue(Func<Task> work)
Parameters
Type Name Description
Func<Task> work

The task to add.

View Source

Enqueue<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.

View Source

GetAwaiter()

Gets an object that waits for the completion of the task queue.

Declaration
public TaskAwaiter GetAwaiter()
Returns
Type Description
TaskAwaiter

An awaitable object.

  • View Source
In this article
Back to top Generated by DocFX