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, Promise and ExecutionContext, have moved from the package akka.dispatch to the package scala.concurrent.
  • The classes Duration, Deadline and the duration package object have moved to scala.concurrent.duration.
  • The class akka.util.NonFatal used for exception matching have moved to scala.util.control.NonFatal.

API Changes

Recent comments

Blog comments powered by Disqus

3 Notes

  1. hakkers posted this