Add `tb_hide: bool` ctl flag to `_open_and_supervise_one_cancels_all_nursery()`

multihost_exs
Tyler Goodlet 2024-08-22 17:22:53 -04:00
parent f7f738638d
commit 7859e743cc
1 changed files with 2 additions and 1 deletions

View File

@ -374,11 +374,12 @@ class ActorNursery:
@acm
async def _open_and_supervise_one_cancels_all_nursery(
actor: Actor,
tb_hide: bool = False,
) -> typing.AsyncGenerator[ActorNursery, None]:
# normally don't need to show user by default
__tracebackhide__: bool = True
__tracebackhide__: bool = tb_hide
outer_err: BaseException|None = None
inner_err: BaseException|None = None