Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support promise cancellation #9

Merged
merged 3 commits into from
Nov 15, 2021
Merged

Conversation

clue
Copy link
Member

@clue clue commented Nov 15, 2021

This changeset adds support for promise cancellation. Once a task fails, it will no longer start any additional tasks and will cancel all pending tasks. Additionally, you can call cancel() on the resulting promise to cancel all pending tasks.

Builds on top of #7

@clue clue added the new feature New feature or request label Nov 15, 2021
@clue clue added this to the v2.0.0 milestone Nov 15, 2021
@clue clue requested a review from WyriHaximus November 15, 2021 14:18
@WyriHaximus WyriHaximus merged commit a112d86 into reactphp:main Nov 15, 2021
@clue clue deleted the cancellation branch November 15, 2021 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants