We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0904731 commit 4437942Copy full SHA for 4437942
README.md
@@ -1373,9 +1373,9 @@ Future<Response> makeQuery(String query) {
1373
// Explicit catch preserves the semantics of the original version of makeQuery() most closely.
1374
// If compile(query) is an expensive computation, it may be undesirable to schedule it to
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.
+ // Another alternative is scheduling compile(query) to the common FJP:
+ // CompletableFuture.supplyAsync(() -> compile(query))
+ // .thenApplyAsync(service::remoteCall, someBlockingIoExecutor());
1379
CompletableFuture<Response> f = new CompletableFuture<>();
1380
f.completeExceptionally(e);
1381
return f; // Or use Guava's immediateFailedFuture()
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments