Kraken\Runtime\Container\Thread\ThreadController::kill PHP Method

kill() public method

public kill ( ) : boolean
return boolean
    public function kill()
    {
        if ($this->killed) {
            return false;
        }
        $this->killed = true;
        $this->isRunning = false;
        return false;
    }

Usage Example

Example #1
0
 /**
  * @return bool
  */
 public function kill()
 {
     if (!is_callable('parent::kill')) {
         return $this->controller->kill();
     }
     return parent::kill();
 }