C# Class System.Threading.Tasks.TaskScheduler

Mostra file Open project: runefs/Marvin Class Usage Examples

Public Methods

Method Description
FromCurrentSynchronizationContext ( ) : TaskScheduler

Protected Methods

Method Description
GetScheduledTasks ( ) : IEnumerable
QueueTask ( System.Threading.Tasks.Task task ) : void
TaskScheduler ( ) : System
TryDequeue ( System.Threading.Tasks.Task task ) : bool
TryExecuteTask ( System.Threading.Tasks.Task task ) : bool
TryExecuteTaskInline ( System.Threading.Tasks.Task task, bool taskWasPreviouslyQueued ) : bool

Method Details

FromCurrentSynchronizationContext() public static method

public static FromCurrentSynchronizationContext ( ) : TaskScheduler
return TaskScheduler

GetScheduledTasks() protected abstract method

protected abstract GetScheduledTasks ( ) : IEnumerable
return IEnumerable

QueueTask() protected abstract method

protected abstract QueueTask ( System.Threading.Tasks.Task task ) : void
task System.Threading.Tasks.Task
return void

TaskScheduler() protected method

protected TaskScheduler ( ) : System
return System

TryDequeue() protected method

protected TryDequeue ( System.Threading.Tasks.Task task ) : bool
task System.Threading.Tasks.Task
return bool

TryExecuteTask() protected method

protected TryExecuteTask ( System.Threading.Tasks.Task task ) : bool
task System.Threading.Tasks.Task
return bool

TryExecuteTaskInline() protected abstract method

protected abstract TryExecuteTaskInline ( System.Threading.Tasks.Task task, bool taskWasPreviouslyQueued ) : bool
task System.Threading.Tasks.Task
taskWasPreviouslyQueued bool
return bool