Skip to main content Link Search Menu Expand Document (external link)

Concat

Concat[T any](inputs ...*Channel[T]) *Channel[T]

Concat concatenates multiple input channels to a single output channel. Channels are consumed in order, e.g., the second channel won’t be consumed until the first channel is closed.

Example

output := Concat(input1, input2)