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

next() can hang indefinitely if the Task is already cancelled. #20

Merged
merged 2 commits into from Jan 3, 2023

Conversation

swhitty
Copy link
Contributor

@swhitty swhitty commented Aug 2, 2022

The unstructured child task used to track iterators is not cancelled when the parent task is cancelled.

An explicit cancellation handler is required.

Updated for mainline branch changes. In some situations I observe that the next() never returns if the calling task is already cancelled. This fix is required.

@swhitty swhitty changed the title Cancel unstructured task when current task is cancelled. next() can hang indefinitely if the Task is already cancelled. Oct 25, 2022
twittemb
twittemb previously approved these changes Jan 3, 2023
Copy link
Contributor

@twittemb twittemb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

None yet

2 participants