concurrency

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package concurrency provides various utility for working with concurrency.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fanout

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

Consume from the 'in' channel and produce the same value to all of the output channels.

func TransformedFanout

func TransformedFanout[T any, V any](ctx context.Context,
	transformer func(in T) V,
	in <-chan T, outs ...chan V)

Consume from the 'in' channel and produce the a transformed value to the output channels. Meaning consume T and produce V.

Types

This section is empty.

Jump to

Keyboard shortcuts

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