C# Class BitSharper.Threading.Execution.ThreadPoolExecutor.CallerRunsPolicy

A handler for rejected tasks that runs the rejected task directly in the calling thread of the IRunnable.Run method, unless the executor has been shut down, in which case the task is discarded.
Inheritance: IRejectedExecutionHandler
Datei anzeigen Open project: TangibleCryptography/BitSharper

Public Methods

Method Description
RejectedExecution ( IRunnable runnable, ThreadPoolExecutor executor ) : void

Executes task runnable in the caller's thread, unless executor has been shut down, in which case the task is discarded. the executor attempting to execute this task the runnable task requested to be executed

Method Details

RejectedExecution() public method

Executes task runnable in the caller's thread, unless executor has been shut down, in which case the task is discarded. the executor attempting to execute this task the runnable task requested to be executed
public RejectedExecution ( IRunnable runnable, ThreadPoolExecutor executor ) : void
runnable IRunnable
executor ThreadPoolExecutor
return void