channel

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Iterator added in v0.2.1

func Iterator[A any](c <-chan A) iterable.Iterator[A]

func Merge

func Merge[A any](ctx context.Context, xs []<-chan A) <-chan A

func Split

func Split[A any](ctx context.Context, in <-chan A, outs []chan<- A)

Split copies events from a single in channel to multiple out channels.

So, a broadcast.

Types

type Channel added in v0.2.1

type Channel[A any] chan A

type ReadOnlyChannel added in v0.2.1

type ReadOnlyChannel[A any] <-chan A

func (ReadOnlyChannel[A]) Iterator added in v0.2.1

func (r ReadOnlyChannel[A]) Iterator() iterable.Iterator[A]

type WriteOnlyChannel added in v0.2.1

type WriteOnlyChannel[A any] chan<- A

Jump to

Keyboard shortcuts

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