Module mutiny.zero
Package mutiny.zero

Interface PublisherHelpers


public interface PublisherHelpers
  • Method Details

    • collectToList

      static <T> CompletionStage<List<T>> collectToList(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.