channel

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Multicast

func Multicast[T any](parent context.Context, in <-chan T, outs ...chan<- T) context.CancelFunc

Multicast dispatch the input channel message to the multiple others

func Send

func Send[T any](ctx context.Context, value T, c chan<- T) error

Send reduces boilerplate for blocking unbuffered channels and ensures propagation of context termination

Types

This section is empty.

Jump to

Keyboard shortcuts

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