workers

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: BSD-2-Clause Imports: 1 Imported by: 1

README

workers

simple parallelization utilities

requires go 1.18+

see godoc or just read the source

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Array added in v1.1.0

func Array[T any](n int, arr []T, handler func(T))

Array launches n workers to perform an action for every item in the input array

func Channel

func Channel[T any](n int, ch chan T, handler func(T))

Channel launches n workers to perform an action for every item in the input channel

Types

This section is empty.

Jump to

Keyboard shortcuts

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