Class Zip<A,B>

All Implemented Interfaces:
Graph<FanInShape2<A,B,scala.Tuple2<A,B>>,NotUsed>

public final class Zip<A,B> extends ZipWith2<A,B,scala.Tuple2<A,B>>
Combine the elements of 2 streams into a stream of tuples.

A Zip has a left and a right input port and one out port

'''Emits when''' all of the inputs has an element available

'''Backpressures when''' downstream backpressures

'''Completes when''' any upstream completes

'''Cancels when''' downstream cancels

  • Constructor Details

    • Zip

      public Zip()
  • Method Details

    • apply

      public static <A, B> Zip<A,B> apply()
      Create a new Zip.
    • toString

      public String toString()
      Overrides:
      toString in class ZipWith2<A,B,scala.Tuple2<A,B>>