public SingleThreadEventExecutor(string threadName, TimeSpan breakoutInterval) { _terminationCompletionSource = new TaskCompletionSource<int>(); Scheduler = new EventExecutorTaskScheduler(this); _breakoutInterval = breakoutInterval; _workerThread = new Thread(Loop) { IsBackground = true, Name = string.IsNullOrEmpty(threadName) ? DefaultWorkerThreadName : threadName }; _workerThread.Start(); }
public SingleThreadEventExecutor(string threadName, TimeSpan breakoutInterval) { _terminationCompletionSource = new TaskCompletionSource <int>(); Scheduler = new EventExecutorTaskScheduler(this); _breakoutInterval = breakoutInterval; _workerThread = new Thread(Loop) { IsBackground = true, Name = string.IsNullOrEmpty(threadName) ? DefaultWorkerThreadName : threadName }; _workerThread.Start(); }
public TaskQueueNode(EventExecutorTaskScheduler scheduler, Task task) { _scheduler = scheduler; _task = task; }