remove use of akka.actor.timeout property for ask
This commit is contained in:
parent
71d58c5338
commit
3a30f915c3
8 changed files with 25 additions and 56 deletions
|
|
@ -231,8 +231,8 @@ public class UntypedActorDocTestBase {
|
|||
final Timeout t = new Timeout(Duration.create(5, TimeUnit.SECONDS));
|
||||
|
||||
final ArrayList<Future<Object>> futures = new ArrayList<Future<Object>>();
|
||||
futures.add(ask(actorA, "request")); // using `akka.actor.timeout` from config
|
||||
futures.add(ask(actorB, "reqeest", t)); // using explicit timeout from above
|
||||
futures.add(ask(actorA, "request", 1000)); // using 1000ms timeout
|
||||
futures.add(ask(actorB, "reqeest", t)); // using timeout from above
|
||||
|
||||
final Future<Iterable<Object>> aggregate = Futures.sequence(futures, system.dispatcher());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue