Emphasize `asyncio` only with sleeps

infect_asyncio
Tyler Goodlet 2021-12-11 13:09:36 -05:00
parent 1fdcaf36f3
commit 73d252e09e
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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