diff --git a/src/AsyncClient.php b/src/AsyncClient.php index 8f93cc2..47843eb 100644 --- a/src/AsyncClient.php +++ b/src/AsyncClient.php @@ -133,6 +133,7 @@ public function __construct(Observable $client) */ public static function create(LoopInterface $loop, string $app, Resolver $resolver = null): AsyncClient { + // Rather not do this, but have to untill ReactPHP gets it's own global loop try { Scheduler::setAsyncFactory(function () use ($loop) { return new Scheduler\EventLoopScheduler($loop);