-
-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
Milestone
Description
The current OOP API looks a bit flawed IMO.
This ticket serves as a discussion basis whether it makes sense to use plain functions instead.
Current API:
$promise = React\Promise\resolve(123);
$blocker = new Clue\React\Block\Blocker($loop);
$value = $blocker->awaitOne($promise);Suggested API (prototype):
$promise = React\Promise\resolve(123);
$value = Clue\React\Block\awaitOne($promise, $loop);