PHPDaemon\Core\Pool::onShutdown PHP Method

onShutdown() public method

Called when application instance is going to shutdown.
public onShutdown ( $graceful = false ) : boolean
return boolean Ready to shutdown?
    public function onShutdown($graceful = false)
    {
        if ($this->pool) {
            return $this->pool->onShutdown($graceful);
        }
        return true;
    }

Usage Example

Beispiel #1
0
 /**
  * Called when application instance is going to shutdown.
  * @return boolean Ready to shutdown?
  */
 public function onShutdown($graceful = false)
 {
     if ($this->pool) {
         return $this->pool->onShutdown($graceful);
     }
     return true;
 }