~/talk

Taking Asynchronous Python to the Next Level Using Trio

Talkat DevDays Europe 2024 · 2024-05-20..05-24· [python]
slides:none on file

Claims that Trio makes async code safer and easier to reason about through structured concurrency with nurseries and cancel scopes and demonstrates concrete tools and outcomes: nurseries for scoped task lifetimes, checkpoints for cooperative switching, cancel scopes for timeouts that reliably cancel work, and exception groups that aggregate simultaneous failures. Examples build an SSL stream chat server, async file and DB operations, and a web scraper using run_sync and trio-asyncio bridging. Demos show clean shutdown, predictable error propagation, and interop with existing asyncio code.

AI-written summary · about

  1. 0:00Trio and async Python intro
  2. 1:30Trio design principles
  3. 3:15Nurseries and task spawning
  4. 5:00Checkpoints and multitasking
  5. 6:51Exception groups and errors
  6. 8:16Timeouts and cancellation
  7. 10:24Cancellation in Trio
  8. 12:31Semaphores and channels sync
  9. 14:25Stream and network I/O
  10. 16:33Trio vs asyncio
  11. 19:43Error handling differences
  12. 22:52Trio vs asyncio design
  13. 25:27Integrating Trio with code
  14. 26:55Trio-asyncio bridge
  15. 28:422023-2024 Trio updates
  16. 31:10Thread and task improvements
  17. 34:02Exception group testing
  18. 35:31TypeVar type checking
  19. 37:43Nursery exit behavior
  20. 39:49Thread and task context
  21. 41:57Guest run init refinements
  22. 44:06Named threads in Trio
  23. 44:50Key takeaways
  24. 45:53Q&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.