Thruway\Peer\Router::stop PHP Method

stop() public method

public stop ( $gracefully = true )
    public function stop($gracefully = true)
    {
        $this->getEventDispatcher()->dispatch('router.stop', new RouterStopEvent());
    }

Usage Example

Ejemplo n.º 1
0
 protected function stopRouter()
 {
     $this->assertInstanceOf('Thruway\\Peer\\Router', $this->router);
     $this->assertInstanceOf('React\\EventLoop\\Timer\\Timer', $this->currentTimer);
     $this->currentTimer->cancel();
     $this->router->stop(false);
 }