(PECL pthreads >= 0.37)
Worker::shutdown — Synchronization
Shuts down the Worker after executing all the Stackables previously stacked
Questa funzione non contiene parametri.
Example #1 Shutdown the referenced Worker
<?php
class My extends Worker {
public function run() {
/* ... */
}
}
$my = new My();
$my->start();
/* ... */
var_dump($my->shutdown());
/* ... */
?>
Il precedente esempio visualizzerĂ :
bool(true)