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

Change to gather_contexts(), use event for graceful exit #254

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

goodboy
Copy link
Owner

@goodboy goodboy commented Oct 24, 2021

The api we've made here is actually closer to asyncio.gather() but
with opening async context managers instead of funcs. Use another event
to allow for graceful teardown of children on non-cancellation exits
and add a doc string.

Thanks to @richardsheridan for suggesting the event based graceful teardown in #241.

The api we've made here is actually closer to `asyncio.gather()` but
with opening async context managers instead of funcs. Use another event
to allow for graceful teardown of children on non-cancellation exits
and add a doc string.
@goodboy goodboy merged commit 925af28 into trionics Oct 25, 2021
@goodboy goodboy deleted the graceful_gather branch October 25, 2021 14:14
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.

2 participants