MergeLatest

org.apache.pekko.stream.javadsl.MergeLatest
object MergeLatest

MergeLatest joins elements from N input streams into stream of lists of size N. i-th element in list is the latest emitted element from i-th input stream. MergeLatest emits list for each element emitted from some input stream, but only after each stream emitted at least one element

'''Emits when''' element is available from some input and each input emits at least one element from stream start

'''Completes when''' all upstreams complete (eagerClose=false) or one upstream completes (eagerClose=true)

'''Cancels when''' downstream cancels

Attributes

Source
MergeLatest.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def create[T](inputPorts: Int, eagerComplete: Boolean): GraphStage[UniformFanInShape[T, List[T]]]

Create a new MergeLatest with the specified number of input ports.

Create a new MergeLatest with the specified number of input ports.

Value parameters

eagerComplete

if true, the merge latest will complete as soon as one of its inputs completes.

inputPorts

number of input ports

Attributes

Source
MergeLatest.scala
def create[T](inputPorts: Int): GraphStage[UniformFanInShape[T, List[T]]]

Create a new MergeLatest with the specified number of input ports.

Create a new MergeLatest with the specified number of input ports.

Value parameters

inputPorts

number of input ports

Attributes

Source
MergeLatest.scala