C# Class Disruptor.Dsl.BasicExecutor

TaskScheduler implementation for IExecutor
Inheritance: IExecutor
Exibir arquivo Open project: disruptor-net/Disruptor-net

Public Methods

Method Description
BasicExecutor ( TaskScheduler taskScheduler ) : System

Create a new BasicExecutor with a given TaskScheduler that will handle low-level queuing of commands execution.

Execute ( System.Action command ) : Task

Start a new task executiong the given command in the current taskscheduler

ToString ( ) : string

Private Methods

Method Description
DumpThreadInfo ( ) : string
ExecuteCommand ( System.Action command ) : void

Method Details

BasicExecutor() public method

Create a new BasicExecutor with a given TaskScheduler that will handle low-level queuing of commands execution.
public BasicExecutor ( TaskScheduler taskScheduler ) : System
taskScheduler System.Threading.Tasks.TaskScheduler
return System

Execute() public method

Start a new task executiong the given command in the current taskscheduler
public Execute ( System.Action command ) : Task
command System.Action
return Task

ToString() public method

public ToString ( ) : string
return string