Overview
Explore asynchronous programming in Scala with this 45-minute conference talk from Strange Loop 2013. Learn about Scala Async, a powerful tool that simplifies asynchronous code by allowing developers to write concurrent code in a sequential style. Discover how to use the 'async' and 'await' constructs to suspend and resume code execution without blocking, making it easier to work with Futures and Promises. Gain insights into integrating Scala Async with various event-driven libraries and see practical examples, including its application in the Play Framework. Delve into advanced features and experimental extensions like Ray, which introduces additional constructs for handling asynchronous operations. Presented by Philipp Haller, a long-time Scala team member and co-author of "Actors in Scala," this talk offers valuable takeaways for developers looking to enhance their asynchronous programming skills in Scala.
Syllabus
Intro
THE PROBLEM
INSPIRATION
GENTLE INTRO TO ASYNC Async provides two constructs: async and wait
USING ASYNC
IN SHORT
PLAY FRAMEWORK EXAMPLE
ANOTHER EXAMPLE
BACK TO USING FOR
DIRECT STYLE
USING AWAIT
NEW FEATURE
EXPERIMENTAL EXTENSION
RAY: RASYNC, AWAIT*, YIELD
CONCLUSION
WHAT IS IT FOR?
TAKEAWAY
ROADMAP
PLUG
Taught by
Strange Loop Conference