From e6687bcdc4992e79c857076c228ea391c4123e3b Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 19 Nov 2021 10:31:42 -0500 Subject: [PATCH] Serious-ify doc string --- tractor/to_asyncio.py | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/tractor/to_asyncio.py b/tractor/to_asyncio.py index 7409d7c..6013fb1 100644 --- a/tractor/to_asyncio.py +++ b/tractor/to_asyncio.py @@ -247,23 +247,24 @@ def run_as_asyncio_guest( ''' Entry for an "infected ``asyncio`` actor". - Uh, oh. :o - - 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. - - :) + Entrypoint for a Python process which starts the ``asyncio`` event + loop and runs ``trio`` in guest mode resulting in a system where + ``trio`` tasks can control ``asyncio`` tasks whilst maintaining + SC semantics. ''' - # Disable sigint handling in children? (nawp) - # import signal - # signal.signal(signal.SIGINT, signal.SIG_IGN) + # Uh, oh. :o + + # 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):