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

ToGoChannel

func (input *Channel[T]) ToGoChannel() <-chan T

ToGoChannel sends all values from the input channel to the returned Go channel.

The returned Go channel closes when all input values have been processed, or the pipeline is canceled.

Example

output := input.ToGoChannel()