File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1373,9 +1373,9 @@ Future<Response> makeQuery(String query) {
1373
1373
// Explicit catch preserves the semantics of the original version of makeQuery() most closely.
1374
1374
// If compile(query) is an expensive computation, it may be undesirable to schedule it to
1375
1375
// someBlockingIoExecutor() by simply moving compile(query) into the lambda below.
1376
- // Another alternative is
1377
- // supplyAsync(() -> compile(query)).thenApply(service::remoteCall, someBlockingIoExecutor());
1378
- // scheduling compile(query) to the common FJP.
1376
+ // Another alternative is scheduling compile(query) to the common FJP:
1377
+ // CompletableFuture. supplyAsync(() -> compile(query))
1378
+ // .thenApplyAsync(service::remoteCall, someBlockingIoExecutor());
1379
1379
CompletableFuture<Response > f = new CompletableFuture<> ();
1380
1380
f. completeExceptionally(e);
1381
1381
return f; // Or use Guava's immediateFailedFuture()
You can’t perform that action at this time.
0 commit comments