Incorparate review comments, see #2410
This commit is contained in:
parent
00f0d1f263
commit
fbdf67b316
2 changed files with 4 additions and 5 deletions
|
|
@ -526,8 +526,7 @@ public class FutureDocTestBase {
|
|||
return "foo";
|
||||
}
|
||||
}, ec);
|
||||
Future<String> result = Futures.firstCompletedOf(
|
||||
Arrays.asList(future, delayed), ec);
|
||||
Future<String> result = future.either(delayed);
|
||||
//#after
|
||||
Await.result(result, Duration.create(2, SECONDS));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue