~/talk

Taking Asynchronous Python to the Next Level Using Trio

Talkat XtremePython 2023 · 2023-12-05..12-06· [python, concurrency]
slides:none on file

Practical tour of Trio that focuses on concrete APIs and behaviors: structured concurrency with nurseries and start_soon that guarantee children finish before parent, cooperative multitasking via checkpoints, cancellation and timeouts with move_on_after and CancelScope, aggregated errors handled as Python 3.11 exception groups, channels and semaphores for synchronization, SSL stream and Trio Path (pathlib) for nonblocking IO, trio-asyncio adapters, run_sync_in_thread with thread naming, and new testing helpers race_group and matchers.

AI-written summary · about

  1. 0:00Introduction to Trio
  2. 1:24Nurseries and task spawning
  3. 3:03Checkpoints in Trio
  4. 4:41Error handling and groups
  5. 6:01Timeouts and cancellation
  6. 7:32Communication and synchronization
  7. 9:34IO and streams
  8. 11:58Trio vs. Asyncio
  9. 13:34Design and migration
  10. 17:13Recent features and updates
  11. 25:13Conclusion and takeaways
~/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.