- A Future is a reference to the result of an asynchronous computation. In other words, a placeholder for a value that will be available at some point in future, as a result of some concurrent computation.
Key points in this tutorial:
- Intro to Scala Futures and Promises
- Creating Futures
- Accessing the result of a Future by blocking
- Accessing the result of a Future asynchronously : Specifying Callbacks on Futures
You can fork this repository and play with the example code. If you have sbt installed, running sbt gen-idea
in the project directory with generate the intelliJ project for it.