The composite future wraps a list of futures, it is useful when several futures needs to be coordinated.
Anything
Object
CompositeFuture
Future
Basic
Identifiable
Object
Anything
no subtypes hierarchy
Initializer |
CompositeFuture(CompositeFuture unknown) |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
cause | shared default Throwable cause(Integer index) Returns a cause of a wrapped future Parameters:
|
complete | shared actual default void complete(CompositeFuture result) Set the result. Any handler will be called, if there is one, and the future will be marked as completed. Parameters:
|
completer | shared actual default Anything(Throwable|CompositeFuture) completer() Refines Future.completer |
compose | shared actual default Future<U?> compose<U>(Future<U?>(CompositeFuture) mapper) Compose this future with a When this future (the one on which If the When this future fails, the failure will be propagated to the returned future and the Parameters:
Refines Future.compose |
compose | shared actual default Future<U?> compose<U>(Anything(CompositeFuture) handler, Future<U?> next) Compose this future with a provided When this (the one on which If the When this future fails, the failure will be propagated to the Parameters:
Refines Future.compose |
failed | shared default Boolean failed(Integer index) Returns true if a wrapped future is failed Parameters:
|
isComplete | shared default Boolean isComplete(Integer index) Returns true if a wrapped future is completed Parameters:
|
map | shared actual default Future<U?> map<U>(U?(CompositeFuture) mapper) Apply a When this future succeeds, the If the When this future fails, the failure will be propagated to the returned future and the Parameters:
Refines Future.map |
result | shared actual default CompositeFuture result() The result of the operation. This will be null if the operation failed. Refines Future.result |
resultAt | shared default T? resultAt<T>(Integer index) Returns the result of a wrapped future Parameters:
|
setHandler | shared actual default CompositeFuture setHandler(Anything(Throwable|CompositeFuture) handler) Set a handler for the result. If the future has already been completed it will be called immediately. Otherwise it will be called when the future is completed. Refines Future.setHandler |
size | shared default Integer size() |
succeeded | shared default Boolean succeeded(Integer index) Returns true if a wrapped future is succeeded Parameters:
|
Inherited Methods |
Methods inherited from: Future<T> |
Methods inherited from: Object equals |