diff --git a/docs/README.rst b/docs/README.rst index d4f0066..b557e9e 100644 --- a/docs/README.rst +++ b/docs/README.rst @@ -347,6 +347,7 @@ Check out our experimental system for `guest-mode`_ controlled while True: # echo the msg back to_trio.send_nowait(await from_trio.get()) + await asyncio.sleep(0) @tractor.context diff --git a/examples/infected_asyncio_echo_server.py b/examples/infected_asyncio_echo_server.py index aeda42c..ee7c45b 100644 --- a/examples/infected_asyncio_echo_server.py +++ b/examples/infected_asyncio_echo_server.py @@ -25,6 +25,7 @@ async def aio_echo_server( while True: # echo the msg back to_trio.send_nowait(await from_trio.get()) + await asyncio.sleep(0) @tractor.context