Icicle\Loop\AbstractLoop::clear PHP Method

clear() public method

public clear ( )
    public function clear()
    {
        $this->callableQueue->clear();
        $this->immediateManager->clear();
        $this->pollManager->clear();
        $this->awaitManager->clear();
        $this->timerManager->clear();
        if (null !== $this->signalManager) {
            $this->signalManager->clear();
        }
    }

Usage Example

コード例 #1
0
ファイル: SelectLoop.php プロジェクト: kanzuka/icicle
 /**
  * {@inheritdoc}
  */
 public function clear()
 {
     parent::clear();
     if (null !== $this->signalTimer) {
         $this->signalTimer->stop();
         $this->signalTimer = $this->timer($this->signalTimer->getInterval(), true, [$this->signalManager, 'tick']);
         $this->signalTimer->unreference();
     }
 }