(PECL pthreads >= 2.0.0)
Worker::isShutdown — State Detection
Whether the worker has been shutdown or not.
У этой функции нет параметров.
Returns whether the worker has been shutdown or not.
Пример #1 Detect the state of a worker
<?php
$worker = new Worker();
$worker->start();
var_dump($worker->isShutdown());
$worker->shutdown();
var_dump($worker->isShutdown());
Результат выполнения данного примера:
bool(false) bool(true)