Kraken\Loop\LoopModelInterface::isRunning PHP Метод

isRunning() публичный Метод

Check if loop is currently running.
public isRunning ( ) : boolean
Результат boolean
    public function isRunning();

Usage Example

Пример #1
0
 /**
  * Flush the callback queue.
  *
  * Invokes callbacks which were on the queue when tick() was called and newly added ones.
  */
 public function tick()
 {
     while (!$this->queue->isEmpty() && $this->loop->isRunning()) {
         $this->callback = $this->queue->dequeue();
         $callback = $this->callback;
         // without this proxy PHPStorm marks line as fatal error.
         $callback($this->loop);
     }
 }
All Usage Examples Of Kraken\Loop\LoopModelInterface::isRunning