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
Afficher le fichier Open project: helios-io/helios Class Usage Examples

Méthodes publiques

Méthode Description
EventExecutorTaskScheduler ( IEventExecutor executor ) : System.Collections.Generic

Méthodes protégées

Méthode 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 méthode

public EventExecutorTaskScheduler ( IEventExecutor executor ) : System.Collections.Generic
executor IEventExecutor
Résultat System.Collections.Generic

GetScheduledTasks() protected méthode

protected GetScheduledTasks ( ) : IEnumerable
Résultat IEnumerable

QueueTask() protected méthode

protected QueueTask ( System.Threading.Tasks.Task task ) : void
task System.Threading.Tasks.Task
Résultat void

TryDequeue() protected méthode

protected TryDequeue ( System.Threading.Tasks.Task task ) : bool
task System.Threading.Tasks.Task
Résultat bool

TryExecuteTaskInline() protected méthode

protected TryExecuteTaskInline ( System.Threading.Tasks.Task task, bool taskWasPreviouslyQueued ) : bool
task System.Threading.Tasks.Task
taskWasPreviouslyQueued bool
Résultat bool