What in the World is Asyncio?
summary
Asyncio is a new standard library module that supplies a single threaded event loop, futures and coroutine helpers and the talk demonstrates using asyncio in Python 3.4 to run network clients and servers. Examples show turning a callback style web request into a linear flow with yield from coroutines to fetch and JSON decode pages, explain cooperative multitasking and the need to avoid blocking calls, and note possible but not yet widespread Twisted compatibility adapters plus a thread pool workaround for blocking libraries.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 2:30Poll
- 4:18What is Asyncio
- 8:43Threading
- 11:43History
- 14:20How to use it
- 15:18Scheduling
- 20:58Compatibility
- 21:58Gotchas
- 22:38Conclusion
related talks
31mA Really Gentle Introduction to Asyncio
30m"Asyncio by Example"
33mArtisanal Async Adventures
35mHow Do Python Coroutines Work?
32mDemystifying AsyncIO: Building Your Own Event Loop in Python
01h 21mTUTORIAL: Async Python, Good it is
32masyncio community, one year later
26mSync or async? Feel the magic of coroutines and the event loop in Django
