2.1 Spotlight: Futures
For Akka 2.1 and Scala 2.10 we have worked together with the Scala communtiy on SIP-14 to bring you a unified standard API for futures in Scala. Since the futures have moved out of Akka and are now part of Scala 2.10 it means that package names and some APIs have changed.
If you are using the Akka Toolkit from Java, then have no fear. The Akka Java API to help you use futures from Java is still there.
This is a brief rundown of the differences. More information is available in the Akka 2.0.x to 2.1.x migration guide
Package name changes
- The classes
Await,Future,PromiseandExecutionContext, have moved from the packageakka.dispatchto the packagescala.concurrent. - The classes
Duration,Deadlineand thedurationpackage object have moved toscala.concurrent.duration. - The class
akka.util.NonFatalused for exception matching have moved toscala.util.control.NonFatal.