Uses of Interface
org.smallibs.concurrent.promise.Promise
Packages that use Promise
Package
Description
-
Uses of Promise in org.smallibs.concurrent.execution
Methods in org.smallibs.concurrent.execution that return PromiseModifier and TypeMethodDescription<T> Promise<T> Async methodExecutor.async(Executor.RunnableWithError task) Async methodMethods in org.smallibs.concurrent.execution with parameters of type Promise -
Uses of Promise in org.smallibs.concurrent.execution.impl
Methods in org.smallibs.concurrent.execution.impl that return Promise -
Uses of Promise in org.smallibs.concurrent.promise
Methods in org.smallibs.concurrent.promise that return PromiseModifier and TypeMethodDescriptiondefault <R> Promise<R> Promise.and(FunctionWithError<? super T, R> function) Method used when a new computation must be done when the current one succeed.<R> Promise<R> Promise.biMap(FunctionWithError<? super T, ? extends R> onSuccess, FunctionWithError<? super Throwable, ? extends R> onError) Method used to map a function on success and another one on error.static <T> Promise<T> <R> Promise<R> Method used to flatmap a function.<R> Promise<R> Promise.map(FunctionWithError<? super T, ? extends R> function) Method used to map a function.Promise.onComplete(java.util.function.Consumer<Try<T>> consumer) Callback called when the computation terminatesMethod called when the computation failsMethod called when the computation succeedsstatic <T> Promise<T> Promise.pure(T value) Constructorstatic <T> Promise<T> PromiseHelper.success(T t) default <R> Promise<R> Method used when a new asynchronous computation must be done when the current one succeed.Methods in org.smallibs.concurrent.promise that return types with arguments of type PromiseModifier and TypeMethodDescriptionstatic <T> Applicative<Promise, T, Promise<T>> PromiseHelper.applicative(Promise<T> promise) static <T> Applicative<Promise, T, Promise<T>> PromiseHelper.applicative(Promise<T> promise) Methods in org.smallibs.concurrent.promise with parameters of type PromiseModifier and TypeMethodDescriptionstatic <T> Applicative<Promise, T, Promise<T>> PromiseHelper.applicative(Promise<T> promise) Method parameters in org.smallibs.concurrent.promise with type arguments of type Promise -
Uses of Promise in org.smallibs.concurrent.promise.impl
Classes in org.smallibs.concurrent.promise.impl that implement PromiseModifier and TypeClassDescriptionclassfinal classclassfinal classMethods in org.smallibs.concurrent.promise.impl that return PromiseModifier and TypeMethodDescriptionSolvablePromise.onComplete(java.util.function.Consumer<Try<T>> consumer) Constructors in org.smallibs.concurrent.promise.impl with parameters of type Promise -
Uses of Promise in org.smallibs.concurrent.utils
Methods in org.smallibs.concurrent.utils that return PromiseModifier and TypeMethodDescriptionstatic <T> Promise<T> CompletableFutureHelper.promise(CompletableFuture<T> completableFuture) Methods in org.smallibs.concurrent.utils with parameters of type PromiseModifier and TypeMethodDescriptionstatic <T> CompletableFuture<T> CompletableFutureHelper.completableFuture(Promise<T> promise) -
Uses of Promise in org.smallibs.data
Methods in org.smallibs.data that return Promise