所有方法 静态方法 实例方法 具体方法
| 限定符和类型 |
方法和说明 |
Promise<Object[]> |
all() |
<T> Promise<T[]> |
all(Class<T> type) |
static Promise<Object[]> |
all(Object[] array) |
static <T> Promise<T[]> |
all(Object[] array,
Class<T> type) |
static Promise<Object[]> |
all(Promise<Object[]> promise) |
static <T> Promise<T[]> |
all(Promise<Object[]> promise,
Class<T> type) |
void |
always(Action<?> oncomplete) |
Promise<?> |
any() |
<T> Promise<T> |
any(Class<T> type) |
static Promise<?> |
any(Object[] array) |
static <T> Promise<T> |
any(Object[] array,
Class<T> type) |
static Promise<?> |
any(Promise<Object[]> promise) |
static <T> Promise<T> |
any(Promise<Object[]> promise,
Class<T> type) |
Promise<?> |
catchError(Action<Throwable> onreject) |
Promise<?> |
catchError(Action<Throwable> onreject,
AsyncFunc<Boolean,Throwable> test) |
Promise<?> |
catchError(Action<Throwable> onreject,
Func<Boolean,Throwable> test) |
<R> Promise<R> |
catchError(AsyncFunc<R,Throwable> onreject) |
<R> Promise<R> |
catchError(AsyncFunc<R,Throwable> onreject,
AsyncFunc<Boolean,Throwable> test) |
<R> Promise<R> |
catchError(AsyncFunc<R,Throwable> onreject,
Func<Boolean,Throwable> test) |
<R> Promise<R> |
catchError(Func<R,Throwable> onreject) |
<R> Promise<R> |
catchError(Func<R,Throwable> onreject,
AsyncFunc<Boolean,Throwable> test) |
<R> Promise<R> |
catchError(Func<R,Throwable> onreject,
Func<Boolean,Throwable> test) |
Promise<?> |
complete(Action<?> oncomplete) |
<R> Promise<R> |
complete(AsyncFunc<R,?> oncomplete) |
<R> Promise<R> |
complete(Func<R,?> oncomplete) |
Promise<V> |
delay(long duration) |
Promise<V> |
delay(long duration,
TimeUnit timeunit) |
static <T> Promise<T> |
delayed(long duration,
AsyncCall<T> computation) |
static <T> Promise<T> |
delayed(long duration,
Call<T> computation) |
static <T> Promise<T> |
delayed(long duration,
Promise<T> value) |
static <T> Promise<T> |
delayed(long duration,
T value) |
static <T> Promise<T> |
delayed(long duration,
TimeUnit timeunit,
AsyncCall<T> computation) |
static <T> Promise<T> |
delayed(long duration,
TimeUnit timeunit,
Call<T> computation) |
static <T> Promise<T> |
delayed(long duration,
TimeUnit timeunit,
Promise<T> value) |
static <T> Promise<T> |
delayed(long duration,
TimeUnit timeunit,
T value) |
void |
done(Action<V> onfulfill) |
void |
done(Action<V> onfulfill,
Action<Throwable> onreject) |
static <T> Promise<T> |
error(Throwable reason) |
static <V> Promise<Boolean> |
every(Func<Boolean,V> callback,
Object... args) |
<V> Promise<Boolean> |
every(Handler<Boolean,V> callback) |
static <V> Promise<Boolean> |
every(Object[] array,
Handler<Boolean,V> callback) |
static <V> Promise<Boolean> |
every(Promise<Object[]> array,
Handler<Boolean,V> callback) |
void |
fail(Action<Throwable> onreject) |
void |
fill(Promise<V> promise) |
static <V> Promise<Object[]> |
filter(Func<Boolean,V> callback,
Object... args) |
<V> Promise<Object[]> |
filter(Handler<Boolean,V> callback) |
<V,T> Promise<T[]> |
filter(Handler<Boolean,V> callback,
Class<T> type) |
static <V> Promise<Object[]> |
filter(Object[] array,
Handler<Boolean,V> callback) |
static <V,T> Promise<T[]> |
filter(Object[] array,
Handler<Boolean,V> callback,
Class<T> type) |
static <V> Promise<Object[]> |
filter(Promise<Object[]> array,
Handler<Boolean,V> callback) |
static <V,T> Promise<T[]> |
filter(Promise<Object[]> array,
Handler<Boolean,V> callback,
Class<T> type) |
static <V> Promise<?> |
forEach(Action<V> callback,
Object... args) |
Promise<?> |
forEach(Handler<?,V> callback) |
static <V> Promise<?> |
forEach(Object[] array,
Handler<?,V> callback) |
static <V> Promise<?> |
forEach(Promise<Object[]> array,
Handler<?,V> callback) |
Throwable |
getReason() |
State |
getState() |
V |
getValue() |
static boolean |
isPromise(Object value) |
static boolean |
isThenable(Object value) |
static Promise<Object[]> |
join(Object... args) |
static <V> Promise<Object[]> |
map(Func<?,V> callback,
Object... args) |
<V> Promise<Object[]> |
map(Handler<?,V> callback) |
<V,T> Promise<T[]> |
map(Handler<T,V> callback,
Class<T> type) |
static <V> Promise<Object[]> |
map(Object[] array,
Handler<?,V> callback) |
static <V,T> Promise<T[]> |
map(Object[] array,
Handler<T,V> callback,
Class<T> type) |
static <V> Promise<Object[]> |
map(Promise<Object[]> array,
Handler<?,V> callback) |
static <V,T> Promise<T[]> |
map(Promise<Object[]> array,
Handler<T,V> callback,
Class<T> type) |
Promise<?> |
race() |
<T> Promise<T> |
race(Class<T> type) |
static Promise<?> |
race(Object[] array) |
static <T> Promise<T> |
race(Object[] array,
Class<T> type) |
static Promise<?> |
race(Promise<Object[]> promise) |
static <T> Promise<T> |
race(Promise<Object[]> promise,
Class<T> type) |
static <R,V> Promise<R> |
reduce(Object[] array,
Reducer<R,V> callback,
R initialValue) |
static <V> Promise<V> |
reduce(Object[] array,
Reducer<V,V> callback) |
static <R,V> Promise<R> |
reduce(Promise<Object[]> array,
Reducer<R,V> callback,
R initialValue) |
static <V> Promise<V> |
reduce(Promise<Object[]> array,
Reducer<V,V> callback) |
<R,V> Promise<R> |
reduce(Reducer<R,V> callback,
R initialValue) |
<V> Promise<V> |
reduce(Reducer<V,V> callback) |
static <R,V> Promise<R> |
reduceRight(Object[] array,
Reducer<R,V> callback,
R initialValue) |
static <V> Promise<V> |
reduceRight(Object[] array,
Reducer<V,V> callback) |
static <R,V> Promise<R> |
reduceRight(Promise<Object[]> array,
Reducer<R,V> callback,
R initialValue) |
static <V> Promise<V> |
reduceRight(Promise<Object[]> array,
Reducer<V,V> callback) |
<R,V> Promise<R> |
reduceRight(Reducer<R,V> callback,
R initialValue) |
<V> Promise<V> |
reduceRight(Reducer<V,V> callback) |
void |
reject(Throwable e) |
void |
resolve(Object value) |
void |
resolve(Promise<V> value) |
void |
resolve(Thenable<V> value) |
static Promise<?> |
run(Action<Object[]> handler,
Object... args) |
static <V> Promise<V> |
run(AsyncFunc<V,Object[]> handler,
Object... args) |
static <T> Promise<?> |
run(Class<T> type,
Action<T[]> handler,
Object... args) |
static <V,T> Promise<V> |
run(Class<T> type,
AsyncFunc<V,T[]> handler,
Object... args) |
static <V,T> Promise<V> |
run(Class<T> type,
Func<V,T[]> handler,
Object... args) |
static <V> Promise<V> |
run(Func<V,Object[]> handler,
Object... args) |
static <V> Promise<Boolean> |
some(Func<Boolean,V> callback,
Object... args) |
<V> Promise<Boolean> |
some(Handler<Boolean,V> callback) |
static <V> Promise<Boolean> |
some(Object[] array,
Handler<Boolean,V> callback) |
static <V> Promise<Boolean> |
some(Promise<Object[]> array,
Handler<Boolean,V> callback) |
static <T> Promise<T> |
sync(AsyncCall<T> computation) |
static <T> Promise<T> |
sync(Call<T> computation) |
Promise<V> |
tap(Action<V> onfulfilledSideEffect) |
Promise<?> |
then(Action<V> onfulfill) |
Promise<?> |
then(Action<V> onfulfill,
Action<Throwable> onreject) |
<R> Promise<R> |
then(AsyncFunc<R,V> onfulfill) |
<R> Promise<R> |
then(AsyncFunc<R,V> onfulfill,
AsyncFunc<R,Throwable> onreject) |
<R> Promise<R> |
then(AsyncFunc<R,V> onfulfill,
Func<R,Throwable> onreject) |
<R> Promise<R> |
then(Func<R,V> onfulfill) |
<R> Promise<R> |
then(Func<R,V> onfulfill,
AsyncFunc<R,Throwable> onreject) |
<R> Promise<R> |
then(Func<R,V> onfulfill,
Func<R,Throwable> onreject) |
Promise<V> |
timeout(long duration) |
Promise<V> |
timeout(long duration,
Throwable reason) |
Promise<V> |
timeout(long duration,
TimeUnit timeunit,
Throwable reason) |
Future<V> |
toFuture() |
static Promise<?> |
toPromise(Object value) |
static <T> Promise<T> |
value(Promise<T> value) |
static <T> Promise<T> |
value(T value) |
static <T> Promise<T> |
value(Thenable<T> value) |
Promise<V> |
whenComplete(Action<?> action) |
Promise<V> |
whenComplete(Runnable action) |