TaskScheduler Methods

Task Parallel System.Threading

The TaskScheduler type exposes the following members.

Methods

  NameDescription
Equals (Inherited from Object.)
Finalize
Frees all resources associated with this scheduler.
(Overrides Object..::.Finalize()()().)
FromCurrentSynchronizationContext
Creates a TaskScheduler associated with the current SynchronizationContext.
GetHashCode (Inherited from Object.)
GetScheduledTasks
Generates an enumerable of Task instances currently queued to the scheduler waiting to be executed.
GetType (Inherited from Object.)
MemberwiseClone (Inherited from Object.)
QueueTask
Queues a Task to the scheduler.
ToString (Inherited from Object.)
TryDequeue
Attempts to dequeue a Task that was previously queued to this scheduler.
TryExecuteTask
Attempts to execute the provided Task on this scheduler.
TryExecuteTaskInline
Determines whether the provided Task can be executed synchronously in this call, and if it can, executes it.

See Also