Skip to content

Commit 827fad8

Browse files
committed
Set scheduler in sync client as well
1 parent e17e0e8 commit 827fad8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Client.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use ApiClients\Client\Travis\Resource\UserInterface;
99
use ApiClients\Foundation\Factory;
1010
use ApiClients\Foundation\Resource\ResourceInterface;
11+
use function ApiClients\Tools\Rx\setAsyncScheduler;
1112
use React\EventLoop\Factory as LoopFactory;
1213
use React\EventLoop\LoopInterface;
1314
use Rx\React\Promise;
@@ -49,6 +50,7 @@ public static function create(
4950
$loop = LoopFactory::create();
5051
$options = ApiSettings::getOptions($token, 'Sync', $options);
5152
$client = Factory::create($loop, $options);
53+
setAsyncScheduler($loop);
5254
$asyncClient = AsyncClient::createFromClient($client);
5355

5456
return self::createFromClient($loop, $asyncClient);

0 commit comments

Comments
 (0)