public function stop($status = 0)
    {
        $this->events->dispatch(new Events\WorkerStopping($status));

        exit($status);
    }
public function stop($status = 0)
    {
        $this->events->dispatch(new Events\WorkerStopping($status));

        exit($status);
    }
public function stop ( $ status = 0 ) { $ this -> events -> dispatch ( new Events \ WorkerStopping ( $ status ) ) ; exit ( $ status ) ; }
Stop listening and bail out of the script.

@param  int  $status
@return void
Stop listening and bail out of the script .