Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4437942

Browse files
committed
Fix comment in Ft.3
1 parent 0904731 commit 4437942

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,9 +1373,9 @@ Future<Response> makeQuery(String query) {
13731373
// Explicit catch preserves the semantics of the original version of makeQuery() most closely.
13741374
// If compile(query) is an expensive computation, it may be undesirable to schedule it to
13751375
// 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());
13791379
CompletableFuture<Response> f = new CompletableFuture<>();
13801380
f.completeExceptionally(e);
13811381
return f; // Or use Guava's immediateFailedFuture()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /