package
module
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Dec 24, 2023
License: BSD-2-Clause
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
workers
simple parallelization utilities
requires go 1.18+
see godoc or just read the source
Documentation
¶
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[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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.