Worker::shutdown
(PECL pthreads >= 0.37)
Worker::shutdown — Synchronization
Beschreibung
final public boolean Worker::shutdown
( void
)
Shuts down the Worker after executing all the Stackables previously stacked
Parameter-Liste
Diese Funktion hat keine Parameter.
Rückgabewerte
Beispiele
Beispiel #1 Shutdown the referenced Worker
<?php
class My extends Worker {
public function run() {
/* ... */
}
}
$my = new My();
$my->start();
/* ... */
var_dump($my->shutdown());
/* ... */
?>
Das oben gezeigte Beispiel erzeugt folgende Ausgabe:
bool(true)
There are no user contributed notes for this page.
