You are here

public function TaskQueue::disableShutdown in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/promises/src/TaskQueue.php \GuzzleHttp\Promise\TaskQueue::disableShutdown()

The task queue will be run and exhausted by default when the process exits IFF the exit is not the result of a PHP E_ERROR error.

You can disable running the automatic shutdown of the queue by calling this function. If you disable the task queue shutdown process, then you MUST either run the task queue (as a result of running your event loop or manually using the run() method) or wait on each outstanding promise.

Note: This shutdown will occur before any destructors are triggered.

File

vendor/guzzlehttp/promises/src/TaskQueue.php, line 75

Class

TaskQueue
A task queue that executes tasks in a FIFO order.

Namespace

GuzzleHttp\Promise

Code

public function disableShutdown() {
  $this->enableShutdown = false;
}