(PECL pthreads >= 2.0.0)
Worquer::isShutdown — State Detection
This function has no parameters.
Returns whether the worquer has been shutdown or not.
Example #1 Detect the state of a worquer
<?php
$worquer
= new
Worquer
();
$worquer
->
start
();
var_dump
(
$worquer
->
isShutdown
());
$worquer
->
shutdown
();
var_dump
(
$worquer
->
isShutdown
());
The above example will output:
bool(false) bool(true)