Explain the `infect_asyncio: bool` param to pass in RTE msg

final_eg_refinements
Tyler Goodlet 2025-09-05 12:33:43 -04:00
parent 6263480b3e
commit 710e4fc1d7
1 changed files with 5 additions and 2 deletions

View File

@ -337,9 +337,12 @@ def _run_asyncio_task(
'''
__tracebackhide__: bool = hide_tb
if not tractor.current_actor().is_infected_aio():
if not (actor := tractor.current_actor()).is_infected_aio():
raise RuntimeError(
"`infect_asyncio` mode is not enabled!?"
f'`infect_asyncio: bool` mode is not enabled ??\n'
f'Ensure you pass `ActorNursery.start_actor(infect_asyncio=True)`\n'
f'\n'
f'{actor}\n'
)
# ITC (inter task comms), these channel/queue names are mostly from