February 2018
Intermediate to advanced
552 pages
13h 46m
English
The Scala Future and Promise API is defined in the scala.concurrent package. This API is used to develop concurrent and parallel applications in the Scala language.
The Future represents a computation unit; this unit is executed by Promise and put into the Future.
In simple words, Future is an object to read that result and Promise is an object to execute that computation unit. Let's explore these concepts in depth, with some useful examples in the coming sections.
Read now
Unlock full access