Kraken\Loop\LoopExtendedInterface::start PHP Method

start() public method

Run the loop until there are no more tasks to perform.
public start ( )
    public function start();

Usage Example

Beispiel #1
0
 /**
  * @dataProvider loopsProvider
  * @param LoopExtendedInterface|LoopModelInterface|mixed $loop
  */
 public function testApiStartAndApiStop_StartsAndStopsLoop($loop)
 {
     $loop->onAfterTick(function () use($loop) {
         $this->assertTrue($loop->isRunning());
         $loop->stop();
         $this->assertFalse($loop->isRunning());
     });
     $loop->start();
     unset($loop);
 }