Partial work + broken commit
This commit is contained in:
parent
3911b18069
commit
52d33113d9
50 changed files with 228 additions and 1092 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue