akka.patterns.ask everywhere
This commit is contained in:
parent
a342bb93ea
commit
ce1d2f4721
53 changed files with 78 additions and 27 deletions
|
|
@ -55,6 +55,7 @@ import akka.actor.UntypedActor;
|
|||
import akka.actor.ActorRef;
|
||||
import akka.actor.Props;
|
||||
import akka.dispatch.Futures;
|
||||
import akka.Patterns;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
|
|
@ -78,7 +79,7 @@ public class FutureDocTestBase {
|
|||
String msg = "hello";
|
||||
//#ask-blocking
|
||||
Timeout timeout = system.settings().ActorTimeout();
|
||||
Future<Object> future = Futures.ask(actor, msg, timeout);
|
||||
Future<Object> future = Patterns.ask(actor, msg, timeout);
|
||||
String result = (String) Await.result(future, timeout.duration());
|
||||
//#ask-blocking
|
||||
assertEquals("HELLO", result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue