System.Threading.Tasks.TaskScheduler: Method Members

The methods of System.Threading.Tasks.TaskScheduler are listed below. For a list of all members, see the TaskScheduler Members list.

See Also: Inherited members from System.Object

Public Methods

Protected Methods

abstract
GetScheduledTasks() : IEnumerable<Task>

For debugger support only, generates an enumerable of System.Threading.Tasks.Task instances currently queued to the scheduler waiting to be executed.

abstract
QueueTask(Task)

Queues a System.Threading.Tasks.Task to the scheduler.

TryDequeue(Task) : bool

Attempts to dequeue a System.Threading.Tasks.Task that was previously queued to this scheduler.

TryExecuteTask(Task) : bool

Attempts to execute the provided System.Threading.Tasks.Task on this scheduler.

abstract
TryExecuteTaskInline(Task, bool) : bool

Determines whether the provided System.Threading.Tasks.Task can be executed synchronously in this call, and if it can, executes it.