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

Fix handling of stop stopping the stopping task. #242

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Jun 7, 2023

Fixes #158.

It was possible to raise Stop on a different fiber, and if that fiber was a parent of the task that was invoking stop_children, it was possible to kill that task mid-iteration, which would prevent stopping the remaining children.

Types of Changes

  • Bug fix.

Contribution

@ioquatix ioquatix merged commit 278bb74 into main Jun 7, 2023
30 of 34 checks passed
@ioquatix ioquatix deleted the stop-later-if-requested branch June 7, 2023 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task hangs during stop if there are more than two sub tasks (?)
1 participant