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

Stop children even if the current task is deferring stop. #312

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Apr 4, 2024

Defer stop does not mean "don't stop". It means there is some code which should ignore stop for a little while and the stop, kind of like an asynchronous ensure block. Therefore, I don't think we should prevent it from propagating to child tasks.

In particular, if you have a server task that is handling one or more child tasks (responses), those tasks should be stopped.

The alternative is to make defer_stop parameteric, but I'm trying to avoid increasing the complexity of this interface.

Types of Changes

  • Bug fix.

Contribution

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.

1 participant