| Modifier and Type | Method and Description |
|---|---|
static Promise<Void> |
Promises.allOf(Collection<? extends Promise<?>> promises)
Returns a new promise that
completes when all promises from the given collection
complete normally or exceptionally. |
static Promise<Void> |
Promises.allOf(Promise<?>... promises)
Returns a new promise that
completes when all promises from the given array
complete normally or exceptionally. |
static <T> Promise<T> |
Promises.anyOf(Collection<? extends Promise<T>> promises)
Returns a new promise that
completes when any promise from the given collection
complete normally or exceptionally. |
static <T> Promise<T> |
Promises.anyOf(Promise<T>... promises)
Returns a new promise that
completes when any promise from the given array
complete normally or exceptionally. |
static <T> Promise<T> |
Promise.completed(T result)
Returns new promise that is
completed with a specified result. |
static <T> Promise<T> |
Promise.failed(Throwable exception)
Returns new promise that is
completed exceptionally with a
specified exception. |
| Modifier and Type | Method and Description |
|---|---|
static Promise<Void> |
Promises.allOf(Promise<?>... promises)
Returns a new promise that
completes when all promises from the given array
complete normally or exceptionally. |
static <T> Promise<T> |
Promises.anyOf(Promise<T>... promises)
Returns a new promise that
completes when any promise from the given array
complete normally or exceptionally. |
void |
PromiseHandler.promiseDone(Promise<? extends T> promise)
|
| Modifier and Type | Method and Description |
|---|---|
static Promise<Void> |
Promises.allOf(Collection<? extends Promise<?>> promises)
Returns a new promise that
completes when all promises from the given collection
complete normally or exceptionally. |
static <T> Promise<T> |
Promises.anyOf(Collection<? extends Promise<T>> promises)
Returns a new promise that
completes when any promise from the given collection
complete normally or exceptionally. |
Copyright © 2002–2025 Devexperts LLC. All rights reserved.