Call `actor.cancel(None)` from root to avoid mismatch with (any future) meth sig changes
parent
5eb62b3e9b
commit
4d0df1bb4a
|
@ -364,7 +364,6 @@ def test_local_task_fanout_from_stream(
|
|||
'inf_streamer',
|
||||
enable_modules=[__name__],
|
||||
)
|
||||
# with trio.fail_after(3):
|
||||
async with (
|
||||
p.open_context(inf_streamer) as (ctx, _),
|
||||
ctx.open_stream() as stream,
|
||||
|
|
|
@ -253,9 +253,7 @@ async def open_root_actor(
|
|||
# tempn.start_soon(an.exited.wait)
|
||||
|
||||
logger.cancel("Shutting down root actor")
|
||||
await actor.cancel(
|
||||
requesting_uid=actor.uid,
|
||||
)
|
||||
await actor.cancel(None) # self cancel
|
||||
finally:
|
||||
_state._current_actor = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue