-
public interface PublisherHelpers
-
-
Method Summary
Static Methods Modifier and Type Method Description static <T> java.util.concurrent.CompletionStage<java.util.List<T>>
collectToList(java.util.concurrent.Flow.Publisher<T> publisher)
Collect all items as a list.
-
-
-
Method Detail
-
collectToList
static <T> java.util.concurrent.CompletionStage<java.util.List<T>> collectToList(java.util.concurrent.Flow.Publisher<T> publisher)
Collect all items as a list.- Type Parameters:
T
- the emitted type- Parameters:
publisher
- the publisher- Returns:
- the future accumulating the items into a list.
-
-