src/OrderedExecutionQueue.php
protected function createRejectFunction($reject)
    {
        $this->reject = function($reason) use (&$reject) {
            $cancelQueue = $this->cancellationQueue;
            $cancelQueue();
            return isset($reject) ? $reject($reason) : null;
        };
    }
protected function createRejectFunction($reject)
    {
        $this->reject = function($reason) use (&$reject) {
            $cancelQueue = $this->cancellationQueue;
            $cancelQueue();
            return isset($reject) ? $reject($reason) : null;
        };
    }
protected function createRejectFunction ( $ reject ) { $ this -> reject = function ( $ reason ) use ( & $ reject ) { $ cancelQueue = $ this -> cancellationQueue ; $ cancelQueue ( ) ; return isset ( $ reject ) ? $ reject ( $ reason ) : null ; } ; }
Create reject function with cancellation queue
@param callable|null $reject
Create reject function with cancellation queue