C# Class SimpleConcurrency.Actors.FairThreadPoolScheduler

A scheduler using a provided FairThreadPool
Inheritance: IScheduler
显示文件 Open project: sdanzan/SimpleConcurrency

Public Methods

Method Description
FairThreadPoolScheduler ( FairThreadPool pool ) : System

Standard constructor.

Schedule ( System.Action action ) : void

Queue the provided Action into the underlying FairThreadPool.

Method Details

FairThreadPoolScheduler() public method

Standard constructor.
public FairThreadPoolScheduler ( FairThreadPool pool ) : System
pool FairThreadPool The FairThreadPool to use.
return System

Schedule() public method

Queue the provided Action into the underlying FairThreadPool.
public Schedule ( System.Action action ) : void
action System.Action Job to schedule.
return void