Worker::isShutdown
(PECL pthreads >= 2.0.0)
Worker::isShutdown — State Detection
パラメータ
この関数にはパラメータはありません。
戻り値
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)
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google