Combine Streams component

Combines the values from the input streams. On each value from any input stream, emits a combined value from the latest values from each input stream.

https://kroki.io/svgbob/svg/eNpT0NNFB3pcCjUKzvm5SZl5qQrBJUWpibnFCjVAQQyVNVy6-QqGClCQX1pSUFqikK8LEjVSQAVA_VYKenp6aIJAlXmYKtUxbFIHAP9cIZ4=

In-ports

1 ... n Any - two or more input streams to combine.

Out-ports

output Array - emits events with array of combined values from the input streams.

Overview

Combine Streams component outputs a stream with values from input streams combined together. On each value from any input stream, emits a combined value from the latest values from each input stream. For example, if you have two input streams with a sequence of numerical values 1, 3, and 2, 4, the output stream will issue [1,2], [3,2], and [3,4]. The output stream will emit the next value only when there is a new input on any of its input ports.

input1: ----1-------3--------->
input2: ------2-----------4--->
output: ------•-----•-----•--->
[1,2] [3,2] [3,4]

Set the number of input streams in the Settings dialog.

Settings

Number of input streams

Set the number of input ports. The default number is two.

Related

Learn More