forked from goodboy/tractor
1
0
Fork 0

Always set the `parent_exit: trio.Event` on exit

ipc_failwhilestream_backup
Tyler Goodlet 2022-11-09 19:10:59 -05:00
parent 304ee6ccd2
commit 2aed7dd5a4
1 changed files with 7 additions and 7 deletions

View File

@ -133,12 +133,12 @@ async def gather_contexts(
# deliver control once all managers have started up # deliver control once all managers have started up
await all_entered.wait() await all_entered.wait()
# NOTE: order *should* be preserved in the output values try:
# since ``dict``s are now implicitly ordered.
yield tuple(unwrapped.values()) yield tuple(unwrapped.values())
finally:
# we don't need a try/finally since cancellation will be triggered # NOTE: this is ABSOLUTELY REQUIRED to avoid
# by the surrounding nursery on error. # the following wacky bug:
# <tractorbugurlhere>
parent_exit.set() parent_exit.set()