Partial work + broken commit

This commit is contained in:
Viktor Klang 2012-07-04 15:25:30 +02:00
parent 3911b18069
commit 52d33113d9
50 changed files with 228 additions and 1092 deletions

View file

@ -12,7 +12,7 @@ import akka.event.Logging
//#imports1
import akka.dispatch.Future
import scala.concurrent.Future
import akka.actor.{ ActorRef, ActorSystem }
import org.scalatest.{ BeforeAndAfterAll, WordSpec }
import org.scalatest.matchers.MustMatchers

View file

@ -79,7 +79,7 @@ class FutureDocSpec extends AkkaSpec {
val msg = "hello"
implicit val timeout = Timeout(5 seconds)
//#map-to
import akka.dispatch.Future
import scala.concurrent.Future
import akka.pattern.ask
val future: Future[String] = ask(actor, msg).mapTo[String]
@ -90,7 +90,7 @@ class FutureDocSpec extends AkkaSpec {
"demonstrate usage of simple future eval" in {
//#future-eval
import scala.concurrent.Await
import akka.dispatch.Future
import scala.concurrent.Future
import scala.concurrent.util.duration._
val future = Future {

View file

@ -9,7 +9,7 @@ import language.postfixOps
import akka.testkit.TestProbe
import scala.concurrent.util.duration._
import akka.actor._
import akka.dispatch.Futures
import scala.concurrent.Futures
//#imports-test-probe