Skip to content

Support promise cancellation for coroutine() and clean up garbage references - #13

Merged
WyriHaximus merged 3 commits into
reactphp:mainfrom
clue-labs:coroutine-cancellation
Nov 19, 2021
Merged

Support promise cancellation for coroutine() and clean up garbage references#13
WyriHaximus merged 3 commits into
reactphp:mainfrom
clue-labs:coroutine-cancellation

Conversation

@clue

@clueclue commented Nov 19, 2021

Copy link
Copy Markdown
Member

This changeset adds support for promise cancellation for the new coroutine() function. You can now call cancel() on the resulting promise to cancel all pending promises within the coroutine. On top this, we now make sure to clean up any garbage references to not leak any memory.

Builds on top of #9 and #12
Refs reactphp/socket#170 and others

@clueclue added the new feature New feature or request label Nov 19, 2021
@clueclue added this to the v3.0.0 milestone Nov 19, 2021
@WyriHaximus
WyriHaximus merged commit c989ee1 into reactphp:mainNov 19, 2021
@clue
clue deleted the coroutine-cancellation branch November 19, 2021 08:34
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new featureNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@clue@WyriHaximus@SimonFrings