Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Merge ¶
func Merge[T any](out chan<- T, c ...<-chan T)
Merge spawns goroutines aggregating the read data of multiple channels into one. The output channel is closed when all input channels have been closed.
func MergeS ¶
func MergeS[T any](out chan<- T, c []chan T)
MergeS is equivalent to Merge except that it accepts a slice of bidirectional channels, avoiding typing issues that occur when attempting to pass a slice to Merge, while giving up some type safety.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.