February 2017
Intermediate to advanced
434 pages
10h 27m
English
Scala futures and promises API resulted from an attempt to consolidate several different APIs for asynchronous programming, among them, legacy Scala futures, Akka futures, Scalaz futures, and Twitter's Finagle futures. Legacy Scala futures and Akka futures have already converged to the futures and promises APIs that you've learned about so far in this chapter. Finagle's com.twitter.util.Future type is planned to eventually implement the same interface as scala.concurrent.Future, while the Scalaz scalaz.concurrent.Future type implements a slightly different interface. In this section, we give a brief description of Scalaz futures.
To use Scalaz, we add the following dependency to the build.sbt file:
libraryDependencies ...
Read now
Unlock full access