Skip to content

Commit bd678e7

Browse files
committed
Drop interop loop support
1 parent 6476918 commit bd678e7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/HttpObservable.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Rx\ObserverInterface;
1111
use Rx\Scheduler;
1212
use Rx\SchedulerInterface;
13-
use WyriHaximus\React\AsyncInteropLoop\AsyncInteropLoop;
1413

1514
class HttpObservable extends Observable
1615
{
@@ -52,7 +51,7 @@ public function __construct(
5251
$this->includeResponse = $includeResponse;
5352
$this->scheduler = $scheduler ?: Scheduler::getDefault();
5453

55-
$loop = new AsyncInteropLoop();
54+
$loop = \EventLoop\getLoop();
5655
$dnsResolverFactory = new Factory();
5756
$dnsResolver = $dnsResolverFactory->createCached('8.8.8.8', $loop);
5857
$factory = new \React\HttpClient\Factory();

0 commit comments

Comments
 (0)