forked from goodboy/tractor
1
0
Fork 0

Serious-ify doc string

infect_asyncio
Tyler Goodlet 2021-11-19 10:31:42 -05:00
parent e815f766f6
commit e6687bcdc4
1 changed files with 16 additions and 15 deletions

View File

@ -247,23 +247,24 @@ def run_as_asyncio_guest(
''' '''
Entry for an "infected ``asyncio`` actor". Entry for an "infected ``asyncio`` actor".
Uh, oh. :o Entrypoint for a Python process which starts the ``asyncio`` event
loop and runs ``trio`` in guest mode resulting in a system where
It looks like your event loop has caught a case of the ``trio``s. ``trio`` tasks can control ``asyncio`` tasks whilst maintaining
SC semantics.
:()
Don't worry, we've heard you'll barely notice. You might hallucinate
a few more propagating errors and feel like your digestion has
slowed but if anything get's too bad your parents will know about
it.
:)
''' '''
# Disable sigint handling in children? (nawp) # Uh, oh. :o
# import signal
# signal.signal(signal.SIGINT, signal.SIG_IGN) # It looks like your event loop has caught a case of the ``trio``s.
# :()
# Don't worry, we've heard you'll barely notice. You might hallucinate
# a few more propagating errors and feel like your digestion has
# slowed but if anything get's too bad your parents will know about
# it.
# :)
async def aio_main(trio_main): async def aio_main(trio_main):