BitSharper.Threading.Execution.ThreadPoolExecutor.CallerRunsPolicy.RejectedExecution C# (CSharp) Method

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
            public void RejectedExecution(IRunnable runnable, ThreadPoolExecutor executor)
            {
                if (executor.IsShutdown) return;
                runnable.Run();
            }
        }
ThreadPoolExecutor.CallerRunsPolicy