public static class FutureUtils.CompletionBuilder<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
FutureUtils.CompletionBuilder<T> |
async(Executor executor)
Turn this
FutureUtils.CompletionBuilder into an AsyncCompletionBuilder. |
CompletableFuture<T> |
with(CompletableFuture<T> future)
Complete the contained to-be-completed
CompletableFuture using the result of future. |
public FutureUtils.CompletionBuilder<T> async(Executor executor)
FutureUtils.CompletionBuilder into an AsyncCompletionBuilder.executor - the Executor to use for the async completion.AsyncCompletionBuilder.public CompletableFuture<T> with(CompletableFuture<T> future)
CompletableFuture using the result of future.future - the CompletableFuture to use as the result for the contained future.FutureUtils.CompletionBuilder.Copyright © 2025. All rights reserved.