Learn about scala futures and promises, concurrent programming
Learn about Futures and how to print its results, Feature is used for read. example code
Promise can be written (normally only once), Promise is used for write. example code
How to do calculation concurrently with Features. example code
How to do calculation synchronously with Features, used Await.result to wait result. example code
How to do calculation parallel with Features, used Future.sequence. example code
How to do calculation parallel with Features, used Future.traverse, traverse and sequence are similar, difference is that traverse easily convert all the Option[Int] into just Int type. example code
The Future.zip will create a new future, whose return type will be a tuple holding the return types of the two futures. example code-1, example dode-2
The foldLeft on your future operations will be run asynchronously from left to right. example code
The reduceLeft is similar with foldLeft, however, reduceLeft() does not allow you to provide a default value. example code
The andThen is used for passing partialFunction. example code
The firstCompletedOf return any one of the futures which finish first. example code
In this example, learn how to create single threaded executionContext. example code
The recover function recovers error message. example code