Skip to content

Commit b755b7f

Browse files
authored
Merge pull request #14 from php-api-clients/event-loop-0.5-3.0
Support react/event-loop 0.5/0.4 and voryx/event-loop 3.0/2.0
2 parents 350a66b + f1986c3 commit b755b7f

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"rx/helpers": "^1.0",
2121
"rx/operator-extras": "^2.1",
2222
"rx/websocket": "^2.0 || ^1.0",
23-
"voryx/event-loop": "^2.0.2"
23+
"voryx/event-loop": "^3.0 || ^2.0.2"
2424
},
2525
"require-dev": {
2626
"api-clients/test-utilities": "^4.1"

composer.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/AsyncClientTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ public function testConnectionRetry()
4949
});
5050
$loop->addTimer(1, function () {
5151
});
52-
$loop->tick();
52+
$loop->futureTick(function () use ($loop) {
53+
$loop->stop();
54+
});
55+
$loop->run();
5356
}
5457

5558
public function testWebSocketNever()

0 commit comments

Comments
 (0)