~/talk

Async/Await for the Monadic Programmer

Talkat Scala Days 2023 Seattle · 2023-06-05..06-07· [scala]
slides:none on file

Compares monadic for-comprehensions (Futures, Cats combinators, error handling via MonadError) with C#/Scala-style async/await and Cats Effect IO, showing how async blocks let you start tasks concurrently and await results, how early-return/validation patterns map (or don’t) to monads, and why async/await trades referential transparency for simpler linear code. Demonstrations include translating real Scala code to C# async style, common pitfalls (sequential awaits inside loops) and where each approach actually wins.

AI-written summary · about

  1. 0:00Intro
  2. 0:27Seattle
  3. 0:49Inner Product
  4. 1:29Perspective
  5. 2:23C Sharp
  6. 6:37Outline
  7. 7:25Monads
  8. 7:37Four Comprehension
  9. 9:57Request
  10. 12:14Local variables
  11. 12:48Fail fast
  12. 13:52Fail types
  13. 14:42Handling errors
  14. 16:14Early returns
  15. 17:57Forward comprehension
  16. 20:35AsyncAwait
  17. 21:35AsyncAwait Example
  18. 24:24AsyncAwait Translation
  19. 25:35Error Handling
  20. 28:32Validation
  21. 28:57Await
  22. 31:23Switching to Await
  23. 34:57Functional Style
  24. 35:48Use Cases
  25. 36:57Local Code
  26. 37:43Moving on
  27. 38:01Conclusion
  28. 40:01References
~/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.