• PHP Video Tutorials

PHP - Worker::shutdown() Function



Worker::shutdown - Synchronization

Syntax

public boolean Worker::shutdown(void)

Worker::shutdown() function can shutdown the Worker after executing all Stackables previously stacked.

Worker::shutdown() function doesn't have any parameters and can return a boolean indication of a state.

Example

<?php
   class My extends Worker {
      public function run() {
         /* ... */
      }
   }
   $my = new My();
   $my->start();
   
   var_dump($my->shutdown());
?>   
php_function_reference.htm
Advertisements