concurrent

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map[T any, R any](items []T, fn func(T) R) []R

func MapCtx added in v0.5.0

func MapCtx[T any, R any](parent ctxpkg.Handle, items []T, fn func(ctxpkg.Handle, T) (R, error)) ([]R, error)

func MapE added in v0.5.0

func MapE[T any, R any](items []T, fn func(T) (R, error)) ([]R, error)

func MapEWithLimit added in v0.5.0

func MapEWithLimit[T any, R any](items []T, limit int, fn func(T) (R, error)) ([]R, error)

func MapWithLimit

func MapWithLimit[T any, R any](items []T, limit int, fn func(T) R) []R

func Parallel

func Parallel(tasks ...func())

func ParallelCtx added in v0.5.0

func ParallelCtx(parent ctxpkg.Handle, tasks ...func(ctxpkg.Handle) error) error

func ParallelE added in v0.5.0

func ParallelE(tasks ...func() error) error

func ParallelWithLimit

func ParallelWithLimit(limit int, tasks ...func())

Types

This section is empty.

Jump to

Keyboard shortcuts

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