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

Merge

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

Merge merges multiple input channels to a single output channel. Values from input channels are sent to the output channel as they arrive, with no specific priority.

Example

output := Merge(input1, input2)