~/talk

Get to grips with asyncio in Python 3

Talkat NDC London 2017 · 2017-01-16..01-20· [python]
slides:none on file

Shows a hands‑built generator-based scheduler that runs cooperative coroutines over the Lucas sequence and an inefficient primality tester to demonstrate the rule that blocking calls are contagious and stall everything, fixes that by making is_prime a generator and using yield from then await, replaces bare yields with asyncio.sleep(0), then moves to real code using the asyncio event loop, create_task / ensure_future / gather, transports/protocols and a working chat server that scales to thousands of concurrent connections.

AI-written summary · about

  1. 0:00Introduction to AsyncIO
  2. 2:54Concurrency vs Parallelism
  3. 7:27Implementing Co-routines
  4. 14:03Building a Custom Scheduler
  5. 19:11Avoiding Blocking Code
  6. 24:43Async and Await Keywords
  7. 31:08Asyncio Library Overview
  8. 37:12Futures and Task Management
  9. 44:45Event Loop and IO Events
  10. 48:50Transports and Protocols
~/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.