Promise subclass via delegation
to the wrapped CompletionStagePromise subclass via delegation
to the wrapped Promise-like interface that implements both
CompletionStage and Future (including CompletableFuture)AsyncSemaphore.acquire(long) with an argument
of 1.CompletionStage-s passed as parameters
are completed normally; if any promise completed exceptionally, then resulting promise is resolved faulty
as well.CompletionStage-s passed as parameters
are completed normally; if any promise completed exceptionally, then resulting promise is resolved faulty
as well.CompletionStage passed as parameters
is completed normally (race is possible); if all promises completed exceptionally, then resulting promise
is resolved faulty as well.CompletionStage passed as parameters
is completed normally (race is possible); if all promises completed exceptionally, then resulting promise
is resolved faulty as well.CompletionStage passed as parameters
is completed normally (race is possible); if any promise completed exceptionally before first result is
available, then resulting promise is resolved faulty as well (unlike non-Strict variant, where exceptions
are ignored if result is available at all).CompletionStage passed as parameters
is completed normally (race is possible); if any promise completed exceptionally before first result is
available, then resulting promise is resolved faulty as well (unlike non-Strict variant, where exceptions
are ignored if result is available at all).Promise with a decorator specifiedPromise that is "bound" to the specified executor.Promise that is "bound" to the specified executor.Promises.any(CompletionStage...) method.Promises.any(CompletionStage...) method.CompletionStage-s passed as arguments into single promise.Promises.anyStrict(CompletionStage...) method.Promises.anyStrict(CompletionStage...) method.Promise interface for long-running blocking tasksPromise with specified value; the promise is "bound" to the specified executor.DependentPromise implementation, i.e.Promise to a DependentPromise
The returned DependentPromise does not implicitly enlist any CompletionStage
for cancellation (neither self, nor passed as arguments to combining methods);
only enlisting via explicit parameter is supportedPromise to a DependentPromise
The returned DependentPromise does implicitly enlist CompletionStage
for cancellation (either self, and/or passed as arguments to combining methods)
according to defaultEnlistOptions parameterPromise wrapper that may keep track origin of this promise and cancel them
along with this promise itself.Promise with an exception providedPromise APIPromise subclass as an
implementation from scratch.Promise-s;
to wrap an arbitrary CompletionStage interface to the Promise API;
to combine several CompletionStage-s into aggregating promise.Promise (removes all decoration layers)AsyncSemaphore.release(long) with an argument
of 1.Promise that is asynchronously resolved by a task running in the given executor
after it runs the given action.Promise with a value providedExecutors utility class that returns various useful implementations
of TaskExecutorService instead of standard ExecutorService.TaskExecutorService interface.Optional if the lock is
not currently held.AsyncSemaphore.tryAcquire(long) with
an argument of 1.Promise if it was decorated (removes one level of decorators)Copyright © 2021. All rights reserved.