T - The type of result of the CompletableFutureWaitResultBuilder<T>WaitResultImplpublic interface WaitResultBuilder5<T>
CompletableFuture to create the
completable operation it self.| Modifier and Type | Method | Description |
|---|---|---|
default CompletableFuture<Optional<T>> |
asyncExec() |
Create and start the async execution of the
CompletableFuture using
ForkJoinPool.commonPool(). |
CompletableFuture<Optional<T>> |
asyncExec(Executor executor) |
Create and start the async execution of the
CompletableFuture. |
default Optional<T> |
finish() |
Directly wait for the result of this execution.
|
default T |
finishWithAResult() |
Directly wait for a positive result of this execution.
|
CompletableFuture<Optional<T>> asyncExec(Executor executor)
CompletableFuture.executor - the executor to be used.CompletableFuturedefault CompletableFuture<Optional<T>> asyncExec()
CompletableFuture using
ForkJoinPool.commonPool().CompletableFuturedefault Optional<T> finish()
AssertionError is thrown.Optional with the result of the executionAssertionError - In case of not ignored exception.default T finishWithAResult()
AssertionError is
thrown.AssertionError - In case of not ignored exception or missing result.Copyright © 2019. All rights reserved.