Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 216 Bytes

File metadata and controls

13 lines (11 loc) · 216 Bytes

Chapter 12: Async & Await

  • async defines coroutine
  • await pauses until result
import asyncio
async def main():
    print("Hello")
    await asyncio.sleep(1)
    print("World")
asyncio.run(main())