Skip to content

Commit 9d3bc82

Browse files
authored
Merge pull request #35 from reactphp-parallel/add-wyrihaximus-react-event-loop-rx-scheduler-hook-up-for-scheduler-hook-up
Add wyrihaximus/react-event-loop-rx-scheduler-hook-up for scheduler hook up
2 parents d927862 + 42ce42a commit 9d3bc82

File tree

3 files changed

+62
-3
lines changed

3 files changed

+62
-3
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"react/promise": "^2.11 || ^3.1",
1818
"reactivex/rxphp": "^2.0.12",
1919
"wyrihaximus/constants": "^1.6",
20-
"wyrihaximus/react-awaitable-observable": "^1.1"
20+
"wyrihaximus/react-awaitable-observable": "^1.1",
21+
"wyrihaximus/react-event-loop-rx-scheduler-hook-up": "^0.1.1"
2122
},
2223
"require-dev": {
2324
"wyrihaximus/async-test-utilities": "^7.2",

composer.lock

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

tests/ChannelTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ public function channel(): void
4848

4949
$promises = [];
5050
foreach ($channels as $channel) {
51-
$promises[] = async(static fn (Channel $channel): array => [...$recvObservable->channel($channel)])($channel);
51+
$promises[] = async(
52+
static fn (Channel $channel): array => [
53+
...$recvObservable->channel($channel),
54+
]
55+
)($channel);
5256
}
5357

5458
$rd = await(all($promises));

0 commit comments

Comments
 (0)