Uses of Interface
dev.webfx.platform.async.AsyncResult
Packages that use AsyncResult
-
Uses of AsyncResult in dev.webfx.platform.async
Subinterfaces of AsyncResult in dev.webfx.platform.asyncModifier and TypeInterfaceDescriptioninterface
The composite future wraps a list offutures
, it is useful when several futures needs to be coordinated.interface
Future<T>
Represents the result of an action that may, or may not, have occurred yet.Methods in dev.webfx.platform.async that return AsyncResultModifier and TypeMethodDescriptiondefault <U> AsyncResult<U>
Apply amapper
function on this async result.default <V> AsyncResult<V>
AsyncResult.map
(V value) Map the result of this async result to a specificvalue
.default <V> AsyncResult<V>
AsyncResult.mapEmpty()
Map the result of this async result tonull
.default AsyncResult<T>
Apply amapper
function on this async result.default AsyncResult<T>
Map the failure of this async result to a specificvalue
.default AsyncResult<T>
AsyncResult.otherwiseEmpty()
Map the failure of this async result tonull
.Methods in dev.webfx.platform.async with parameters of type AsyncResultModifier and TypeMethodDescriptiondefault void
Promise.handle
(AsyncResult<T> asyncResult) Succeed or fail this promise with theAsyncResult
event.Method parameters in dev.webfx.platform.async with type arguments of type AsyncResultModifier and TypeMethodDescriptionFuture.andThen
(Handler<AsyncResult<T>> handler) Invokes the givenhandler
upon completion.CompositeFuture.onComplete
(Handler<AsyncResult<CompositeFuture>> handler) Deprecated.Future.onComplete
(Handler<AsyncResult<T>> handler) Add a handler to be notified of the result.<U> Future<U>
Future.transform
(Function<AsyncResult<T>, Future<U>> mapper) Transform this future with amapper
functions. -
Uses of AsyncResult in dev.webfx.platform.async.impl
Subinterfaces of AsyncResult in dev.webfx.platform.async.implModifier and TypeInterfaceDescriptioninterface
Expose some of the future internal stuff.interface
Classes in dev.webfx.platform.async.impl that implement AsyncResultModifier and TypeClassDescriptionclass
final class
FailedFuture<T>
Failed future implementation.class
FutureImpl<T>
Future implementation.final class
PromiseImpl<T>
Promise implementation.final class
Succeeded future implementation.Methods in dev.webfx.platform.async.impl with parameters of type AsyncResultModifier and TypeMethodDescriptionvoid
PromiseImpl.handle
(AsyncResult<T> ar) Create a promise that hasn't completed yetMethod parameters in dev.webfx.platform.async.impl with type arguments of type AsyncResultModifier and TypeMethodDescriptionCompositeFutureImpl.onComplete
(Handler<AsyncResult<CompositeFuture>> handler) FailedFuture.onComplete
(Handler<AsyncResult<T>> handler) FutureImpl.onComplete
(Handler<AsyncResult<T>> handler) SucceededFuture.onComplete
(Handler<AsyncResult<T>> handler)
Future.join(List)