| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<Object> |
collectFrom(org.reactivestreams.Publisher<?> publisher)
Collects objects published from the specified
Publisher. |
static <T> CompletableFuture<List<T>> |
collectFrom(Stream<T> stream,
Executor executor)
Collects objects published from the specified
Stream. |
public static <T> CompletableFuture<List<T>> collectFrom(Stream<T> stream, Executor executor)
Stream.stream - publishes objectsexecutor - executes the collecting jobCompletableFuture which will complete when all published objects are collectedpublic static CompletableFuture<Object> collectFrom(org.reactivestreams.Publisher<?> publisher)
Publisher.publisher - publishes objectsCompletableFuture which will complete when all published objects are collectedCopyright © 2020 LeanCloud. All rights reserved.