erase() 공개 메소드

Erase loop.
public erase ( boolean $all = false ) : Kraken\Loop\LoopExtendedInterface
$all boolean
리턴 Kraken\Loop\LoopExtendedInterface
예제 #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);
 }
예제 #2
0
 /**
  *
  */
 public function setUp()
 {
     $this->loop = new Loop(new SelectLoop());
     $this->loop->erase(true);
     $this->simulation = new Simulation($this->loop);
 }