~/talk

A gentle introduction to asyncio

Talkat PyOhio 2014 · 2014-07-26..07-27· [concurrency]
links:none on file
slides:none on file

Covers Python 3.4’s asyncio as a concrete replacement for older async approaches, explains generators-as-coroutines, futures/tasks and the event loop APIs, builds a working echo server/client using stream reader/writer pairs and shows it handling many concurrent connections without threads, compares to Twisted/Gevent and notes Windows IOCP support, points to Tulip/Trollius backports and Autobahn WebSocket ports, and demonstrates that the example code runs end-to-end.

AI-written summary · about

  1. 0:00Introduction
  2. 3:51Async I/O concepts
  3. 7:27Scaling and trade-offs
  4. 10:56Threading and processes
  5. 13:57Python concurrency history
  6. 18:47The Twisted framework
  7. 23:51Asyncio design goals
  8. 26:52Event loop internals
  9. 33:20Generators and yield from
  10. 40:26Coroutines and futures
  11. 47:55Transports and streams
  12. 54:56Conclusion and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.