(PECL pthreads >= 2.0.0)
Synchronization
public boolean Worker::shutdown ( void )
Shuts down the Worker after executing all the objects previously stacked
Returns:
Examples:
Shutdown the referenced Worker
1 2 3 4 5 6 7 | <?php $my = new Worker(); $my ->start(); /* ... */ var_dump( $my ->shutdown()); /* ... */ ?> |
The above example will output:
bool(true)
Please login to continue.