~/talk

How Do Python Coroutines Work?

Talkat Open Source Bridge 2015 · 2015-06-23..06-26· [python, machine-learning]
slides:none on file

A minimal async framework is implemented from scratch using nonblocking sockets and Python 3’s selectors, then refactored into coroutines built from generators, Future and Task classes, and the generator yield mechanism; the result replaces nested callbacks with a single generator per request. The demo runs two slow URL fetches two URLs in one second, shows how asyncio’s primitives map to concrete code, and ends with a working toy event loop that actually completes.

AI-written summary · about

  1. 0:00Start
  2. 1:13Agenda
  3. 6:41What Async Is
  4. 20:19Convert to Co-Routines
  5. 22:48Generator Function
~/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.