Beispiel #1
0
 public static function getLoop()
 {
     if (static::$loop === null) {
         static::$loop = EventLoop::getLoop();
     }
     return static::$loop;
 }
Beispiel #2
0
 public static function getLoop()
 {
     if (static::$loop) {
         return static::$loop;
     }
     static::$loop = Factory::create();
     static::registerLoopRunner();
     return static::$loop;
 }
Beispiel #3
0
 public static function setLoop(&$loop)
 {
     static::$loop = $loop;
 }
 /**
  * @param LoopInterface $loop
  */
 public static function setLoop(LoopInterface $loop)
 {
     static::$loop = $loop;
 }
Beispiel #5
0
 public static function quit()
 {
     static::$loop = FALSE;
 }