channels

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate[T any](values ...T) <-chan T

Generate sends each value to the out channel.

func Merge

func Merge[T any](in ...<-chan T) <-chan T

Merge sends each value from a list of input channels to the out channel.

func Process

func Process[T any](in <-chan T, fn func(in T) T) <-chan T

Process works on each value from an input channel and sends the result to an output channel.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL