public class FutureSupplier extends Object
Constructor and Description |
---|
FutureSupplier() |
Modifier and Type | Method and Description |
---|---|
static <R> io.vertx.core.Future<List<R>> |
sequenceFuture(List<io.vertx.core.Future<R>> futures)
Sequence with a list of futures.
|
<T> io.vertx.core.Future<T> |
supply(Supplier<T> event)
Supply.
|
public static <R> io.vertx.core.Future<List<R>> sequenceFuture(List<io.vertx.core.Future<R>> futures)
When all futures succeed, the result future completes with the list of each
result of elements in futures
.
futures
fails. When the list is empty, the returned future will be already
completed.
Useful for reducing many futures into a single @{link Future}.futures
- a list of futures
public <T> io.vertx.core.Future<T> supply(Supplier<T> event)
T
- the generic typeevent
- the eventCopyright © 2017 JSpare.org. All rights reserved.