Kraken\Loop\LoopExtendedInterface::erase PHP Méthode

erase() public méthode

Erase loop.
public erase ( boolean $all = false ) : Kraken\Loop\LoopExtendedInterface
$all boolean
Résultat Kraken\Loop\LoopExtendedInterface
    public function erase($all = false);

Usage Example

Exemple #1
0
 /**
  * @dataProvider loopsProvider
  * @param LoopExtendedInterface|LoopModelInterface|mixed $loop
  */
 public function testApiFlush_FlushesAllHandlers_WhenAllFlagSetToTrue($loop)
 {
     $stream = $this->createStream();
     $loop->onAfterTick($this->expectCallableNever());
     $loop->onBeforeTick($this->expectCallableNever());
     $loop->addWriteStream($stream, $this->expectCallableNever());
     $loop->addReadStream($stream, $this->expectCallableNever());
     $loop->erase(true);
     $loop->tick();
     unset($stream);
     unset($loop);
 }
All Usage Examples Of Kraken\Loop\LoopExtendedInterface::erase