Ever wished the compiler could make asynchronous programming easier? Enter Scala Async. Do asynchronous I/O like “normal” blocking I/O, program with Futures and Promises even more naturally!
Scala Async makes it possible to “suspend” at arbitrary points in a block of regular Scala code, and to “resume” from that point later--all without blocking. This not only makes it possible to make concurrent code look sequential, it makes it possible to actually use even the most unfamiliar asynchronous libraries in a familiar blocking style.
What’s more, not only does it come out-of-the-box seamlessly integrated with the Futures and Promises API of Scala 2.10, but you can also easily use it with any other event-driven Scala or Java library of your choice.
YOU MAY ALSO LIKE:
- Typesafe's Fast Track to Scala Course (in London on 14th - 15th September 2015)
- Conway's Law & Reverse Conway's Law - How to avoid being caught by it and how to turn it to your advantage (in London on 23rd September 2015)
- Stairway to Scala Part 2 (Advanced) with Bill Venners and Dick Wall (in San Jose on 7th - 9th October 2015)
- µCon 2015: The Microservices Conference (in London on 9th - 10th November 2015)
Simplifying Asynchronous Code with Scala Async
Philipp Haller has been a member of the Scala team since 2006. His research at EPFL on concurrent programming with race-free actors in Scala has been published in leading conferences, winning a best paper award. He is the creator of Scala's first act