Icicle\Concurrent\Worker\AbstractWorker::cancelPending PHP Method

cancelPending() private method

Cancels all pending tasks.
private cancelPending ( )
    private function cancelPending()
    {
        if (!$this->busyQueue->isEmpty()) {
            $exception = new WorkerException('Worker was shut down.');
            do {
                $this->busyQueue->dequeue()->cancel($exception);
            } while (!$this->busyQueue->isEmpty());
        }
    }