예제 #1
0
파일: Loop.php 프로젝트: RubiconPHP/Loop
 /**
  * @throws \Exception
  */
 public function start()
 {
     try {
         $this->running = true;
         $this->run($this->config->getCallback());
     } catch (LoopException $exception) {
         $this->event->setException($exception);
         $this->stop();
     } catch (\Exception $exception) {
         throw $exception;
     }
 }