~/talk

Coroutine Concurrency in Python 3 with asyncio

Talkat NDC Oslo 2017 · 2017-06-14..06-16· [python]
slides:none on file

Builds a minimal coroutine scheduler from scratch that runs Lucas sequence generators and a naive prime tester, shows the single-bare-yield bug and why every called function must be nonblocking, then mechanically refactors those generators into Python 3 async/await backed by asyncio, replacing yield-from → await. Covers futures/tasks, why to use ensure_future/gather, transports, protocol vs stream APIs, and a working telnet-style chatroom; about 80% code and live demo.

AI-written summary · about

  1. 0:00Introduction to async
  2. 3:24Concepts of concurrency
  3. 10:28Building a custom scheduler
  4. 23:40Managing task execution
  5. 35:34Refactoring to async/await
  6. 38:56Advanced async features
  7. 48:06Practical I/O and demo
  8. 59:02Conclusion and Q&A
~/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.