Skip to content

Conversation

@clue
Copy link
Owner

@clue clue commented Oct 17, 2021

This changeset deprecates the $timeout argument for the await(), awaitAny() and awaitAll() functions. API authors creating promises are expected to provide means to configure a timeout for the promise instead. For more details, see also the timeout() function.

// deprecated
Clue\React\Block\await($promise, $loop, $timeout);
Clue\React\Block\awaitAny($promises, $loop, $timeout);
Clue\React\Block\awaitAll($promises, $loop, $timeout);

// still supported
Clue\React\Block\await($promise, $loop);
Clue\React\Block\awaitAny($promises, $loop);
Clue\React\Block\awaitAll($promises, $loop);

Refs #14/#17

@clue clue added this to the v1.5.0 milestone Oct 17, 2021
@clue clue requested a review from SimonFrings October 17, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants