~/talk

Simplifying Asynchronous Code With Scala Async

Talkat Strange Loop 2013 · 2013-09-18..09-20· [scala, concurrency]
slides:none on file

A macro library implements async/await macro that transforms regular Scala code into an efficient state‑machine, returning Scala 2.10/2.11 futures and avoiding language changes. It integrates with the Futures and Promises API, supports a reactive variant (rasync for observables) that yields and awaits stream events, and offers a sequential debugging mode that runs async blocks on one thread for stepping. The implementation is open source on GitHub and claims non‑blocking suspension with low allocation overhead; examples and limitations (no await inside closures or by‑name args) are demonstrated.

AI-written summary · about

  1. 0:00Intro
  2. 1:56THE PROBLEM
  3. 4:07INSPIRATION
  4. 6:57GENTLE INTRO TO ASYNC Async provides two constructs: async and wait
  5. 8:12USING ASYNC
  6. 12:18IN SHORT
  7. 14:02PLAY FRAMEWORK EXAMPLE
  8. 18:50ANOTHER EXAMPLE
  9. 20:22BACK TO USING FOR
  10. 23:14DIRECT STYLE
  11. 24:56USING AWAIT
  12. 28:19NEW FEATURE
  13. 30:05EXPERIMENTAL EXTENSION
  14. 33:20RAY: RASYNC, AWAIT*, YIELD
  15. 36:21CONCLUSION
  16. 38:12WHAT IS IT FOR?
  17. 39:29TAKEAWAY
  18. 39:46ROADMAP
  19. 40:29PLUG
~/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.