类的使用
cn.wjybxx.sequential.UniPromise
使用UniPromise的程序包
-
cn.wjybxx.sequential中UniPromise的使用
修饰符和类型方法说明final UniPromise<T> UniPromise.await()final UniPromise<T> UniPromise.awaitUninterruptibly()<X extends Throwable>
UniPromise<T> UniPromise.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback) <X extends Throwable>
UniPromise<T> UniPromise.catching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) <X extends Throwable>
UniPromise<T> UniPromise.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback) <X extends Throwable>
UniPromise<T> UniPromise.catchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends T> fallback, IContext ctx, int options) static <V> UniPromise<V> UniPromise.completedPromise(V result) static <V> UniPromise<V> UniPromise.completedPromise(V result, Executor executor) <U> UniPromise<U> UniPromise.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn) <U> UniPromise<U> UniPromise.composeApply(BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn) <U> UniPromise<U> UniPromise.composeApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn) <U> UniPromise<U> UniPromise.composeCall(Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn) <U> UniPromise<U> UniPromise.composeCallAsync(Executor executor, Function<? super IContext, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <X extends Throwable>
UniPromise<T> UniPromise.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback) <X extends Throwable>
UniPromise<T> UniPromise.composeCatching(Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) <X extends Throwable>
UniPromise<T> UniPromise.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback) <X extends Throwable>
UniPromise<T> UniPromise.composeCatchingAsync(Executor executor, Class<X> exceptionType, BiFunction<? super IContext, ? super X, ? extends ICompletionStage<T>> fallback, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn) <U> UniPromise<U> UniPromise.composeHandle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn) <U> UniPromise<U> UniPromise.composeHandleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, ? super Throwable, ? extends ICompletionStage<U>> fn, IContext ctx, int options) static <V> UniPromise<V> UniPromise.failedPromise(Throwable cause) static <V> UniPromise<V> UniPromise.failedPromise(Throwable cause, Executor executor) <U> UniPromise<U> UniPromise.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn) <U> UniPromise<U> UniPromise.handle(cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn) <U> UniPromise<U> UniPromise.handleAsync(Executor executor, cn.wjybxx.base.function.TriFunction<? super IContext, ? super T, Throwable, ? extends U> fn, IContext ctx, int options) protected <U> UniPromise<U> UniPromise.newIncompletePromise(Executor exe) <V> UniPromise<V> AbstractUniExecutor.newPromise()static <V> UniPromise<V> UniFutureUtils.newPromise()static <V> UniPromise<V> UniFutureUtils.newPromise(Executor executor) UniPromise.thenAccept(BiConsumer<? super IContext, ? super T> action) UniPromise.thenAccept(BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) UniPromise.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action) UniPromise.thenAcceptAsync(Executor executor, BiConsumer<? super IContext, ? super T> action, IContext ctx, int options) <U> UniPromise<U> UniPromise.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn) <U> UniPromise<U> UniPromise.thenApply(BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> UniPromise<U> UniPromise.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn) <U> UniPromise<U> UniPromise.thenApplyAsync(Executor executor, BiFunction<? super IContext, ? super T, ? extends U> fn, IContext ctx, int options) <U> UniPromise<U> <U> UniPromise<U> <U> UniPromise<U> UniPromise.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn) <U> UniPromise<U> UniPromise.thenCallAsync(Executor executor, Function<? super IContext, ? extends U> fn, IContext ctx, int options) UniPromise.thenRunAsync(Executor executor, Consumer<? super IContext> action) UniPromise.thenRunAsync(Executor executor, Consumer<? super IContext> action, IContext ctx, int options) UniPromise.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action) UniPromise.whenComplete(cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options) UniPromise.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action) UniPromise.whenCompleteAsync(Executor executor, cn.wjybxx.base.function.TriConsumer<? super IContext, ? super T, ? super Throwable> action, IContext ctx, int options)