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