channels

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

A package channels is a package that contains the channels implementation of the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broadcast

func Broadcast[T any](input <-chan T, outputs ...chan<- T)

Broadcast broadcasts a channel to multiple channels.

func Drain added in v0.1.13

func Drain[T any](input <-chan T)

Drain drains the channel until it is closed.

func Filter added in v0.1.15

func Filter[T any](input <-chan T, fn func(T) bool) <-chan T

Filter filters the channel with the given function.

func Join

func Join[T any](inputs ...<-chan T) <-chan T

Join joins multiple channels into one.

func Merge

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

Merge merges multiple channels into one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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