C# Class Helios.Concurrency.EventExecutorTaskScheduler

Wraps a IEventExecutor inside a TaskScheduler and allow scheduling of Task instances onto that executor.
Inheritance: System.Threading.Tasks.TaskScheduler
Mostra file Open project: helios-io/helios Class Usage Examples

Public Methods

Method Description
EventExecutorTaskScheduler ( IEventExecutor executor ) : System.Collections.Generic

Protected Methods

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

Method Details

EventExecutorTaskScheduler() public method

public EventExecutorTaskScheduler ( IEventExecutor executor ) : System.Collections.Generic
executor IEventExecutor
return System.Collections.Generic

GetScheduledTasks() protected method

protected GetScheduledTasks ( ) : IEnumerable
return IEnumerable

QueueTask() protected method

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

TryDequeue() protected method

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

TryExecuteTaskInline() protected method

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