Initial work in moving to scala.concurrent.Await + Awaitable
This commit is contained in:
parent
1f6f2c1897
commit
0bf45a9403
87 changed files with 170 additions and 260 deletions
|
|
@ -20,7 +20,7 @@ import akka.testkit._
|
|||
import akka.util._
|
||||
import scala.concurrent.util.duration._
|
||||
import akka.actor.Actor.Receive
|
||||
import akka.dispatch.Await
|
||||
import scala.concurrent.Await
|
||||
|
||||
//#my-actor
|
||||
class MyActor extends Actor {
|
||||
|
|
@ -327,7 +327,7 @@ class ActorDocSpec extends AkkaSpec(Map("akka.loglevel" -> "INFO")) {
|
|||
val actorRef = system.actorOf(Props[MyActor])
|
||||
//#gracefulStop
|
||||
import akka.pattern.gracefulStop
|
||||
import akka.dispatch.Await
|
||||
import scala.concurrent.Await
|
||||
|
||||
try {
|
||||
val stopped: Future[Boolean] = gracefulStop(actorRef, 5 seconds)(system)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue