A Blocking Call Inside a Coroutine
import asyncio
import time
async def blocking():
print("blocking start")
time.sleep(1)
print("blocking end")
async def quick():
print("quick start")
await asyncio.sleep(0.1)
print("quick end")
async def main():
await asyncio.gather(blocking(), quick())
asyncio.run(main())
What order do the four print statements appear in?
Sign in to answer questions and track your progress
Sign In