Completion for an anyOf input future.
A Completion for an action with two sources
A Completion delegating to a BiCompletion
A {@link Future} that may be explicitly completed (setting its value and status), and may be used as a {@link CompletionStage}, supporting dependent functions and actions that trigger upon its completion.
Action to complete on timeout
Singleton delay scheduler, used only for starting and cancelling tasks.
A subclass that just throws UOE for most non-CompletionStage methods.
Completion for recording and releasing a waiting thread. This class implements ManagedBlocker to avoid starvation when blocking actions pile up in ForkJoinPools.
Action to submit user task
Action to completeExceptionally on timeout
Returns a new CompletableFuture that is completed when all of the given CompletableFutures complete. If any of the given CompletableFutures complete exceptionally, then the returned CompletableFuture also does so, with a CompletionException holding this exception as its cause. Otherwise, the results, if any, of the given CompletableFutures are not reflected in the returned CompletableFuture, but may be obtained by inspecting them individually. If no CompletableFutures are provided, returns a CompletableFuture completed with the value {@code null}.
Returns a new CompletableFuture that is already completed with the given value.
Returns a new CompletionStage that is already completed with the given value and supports only those methods in interface {@link CompletionStage}.
Returns a new Executor that submits a task to the given base executor after the given delay (or no delay if non-positive). Each delay commences upon invocation of the returned executor's {@code execute} method.
Returns a new Executor that submits a task to the default executor after the given delay (or no delay if non-positive). Each delay commences upon invocation of the returned executor's {@code execute} method.
Returns a new CompletableFuture that is already completed exceptionally with the given exception.
Returns a new CompletionStage that is already completed exceptionally with the given exception and supports only those methods in interface {@link CompletionStage}.
Returns a new CompletableFuture that is asynchronously completed by a task running in the {@link ForkJoinPool#commonPool()} after it runs the given action.
Returns a new CompletableFuture that is asynchronously completed by a task running in the given executor after it runs the given action.
Null-checks user executor argument, and translates uses of commonPool to ASYNC_POOL in case parallelism disabled.
Returns a new CompletableFuture that is asynchronously completed by a task running in the {@link ForkJoinPool#commonPool()} with the value obtained by calling the given Supplier.
Returns a new CompletableFuture that is asynchronously completed by a task running in the given executor with the value obtained by calling the given Supplier.
A Completion with a source, dependent, and executor.
Returns a new CompletableFuture that is completed when any of the given CompletableFutures complete, with the same result. Otherwise, if it completed exceptionally, the returned CompletableFuture also does so, with a CompletionException holding this exception as its cause. If no CompletableFutures are provided, returns an incomplete CompletableFuture.
Returns a new incomplete CompletableFuture of the type to be returned by a CompletionStage method. Subclasses should normally override this method to return an instance of the same class as this CompletableFuture. The default implementation returns an instance of class CompletableFuture.
The encoding of the null value.