Hide `collapse_eg()` frame as used from `open_root_actor()`
parent
a9f06df3fb
commit
bfe5b2dde6
|
@ -478,13 +478,10 @@ async def open_root_actor(
|
||||||
|
|
||||||
# start runtime in a bg sub-task, yield to caller.
|
# start runtime in a bg sub-task, yield to caller.
|
||||||
async with (
|
async with (
|
||||||
collapse_eg(
|
collapse_eg(),
|
||||||
# bp=True,
|
|
||||||
hide_tb=False,
|
|
||||||
),
|
|
||||||
trio.open_nursery() as root_tn,
|
trio.open_nursery() as root_tn,
|
||||||
|
|
||||||
# XXX, finally-footgun below?
|
# ?TODO? finally-footgun below?
|
||||||
# -> see note on why shielding.
|
# -> see note on why shielding.
|
||||||
# maybe_raise_from_masking_exc(),
|
# maybe_raise_from_masking_exc(),
|
||||||
):
|
):
|
||||||
|
@ -532,7 +529,6 @@ async def open_root_actor(
|
||||||
# crashes under cancellation conditions; so
|
# crashes under cancellation conditions; so
|
||||||
# most of them!
|
# most of them!
|
||||||
shield=root_tn.cancel_scope.cancel_called,
|
shield=root_tn.cancel_scope.cancel_called,
|
||||||
# ^TODO? write a (debugger) test for this ya?
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
@ -572,6 +568,7 @@ async def open_root_actor(
|
||||||
f'{op_nested_actor_repr}'
|
f'{op_nested_actor_repr}'
|
||||||
)
|
)
|
||||||
# XXX, THIS IS A *finally-footgun*!
|
# XXX, THIS IS A *finally-footgun*!
|
||||||
|
# (also mentioned in with-block above)
|
||||||
# -> though already shields iternally it can
|
# -> though already shields iternally it can
|
||||||
# taskc here and mask underlying errors raised in
|
# taskc here and mask underlying errors raised in
|
||||||
# the try-block above?
|
# the try-block above?
|
||||||
|
|
Loading…
Reference in New Issue