Skip to content

Commit

Permalink
Rather not set these factories but have to until either reactphp/even…
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed May 24, 2017
1 parent a545964 commit 9148a5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AsyncClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9148a5a

Please sign in to comment.