public interface PublisherHelpers
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T> CompletionStage<List<T>>
collectToList
(Flow.Publisher<T> publisher) Collect all items as a list.
-
Method Details
-
collectToList
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.
-