System.Threading.Tasks.TaskScheduler.QueueTask Method

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

Syntax

protected abstract void QueueTask (Task task)

Parameters

task
The System.Threading.Tasks.Task to be queued.

Remarks

A class derived from System.Threading.Tasks.TaskScheduler implements this method to accept tasks being scheduled on the scheduler.

A typical implementation would store the task in an internal data structure, which would be serviced by threads that would execute those tasks at some time in the future.

This method is only meant to be called by the .NET Framework and should not be called directly by the derived class. This is necessary for maintaining the consistency of the system.

Requirements

Namespace: System.Threading.Tasks
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0