indices

package
v0.50.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(total, groups int) []int

New creates slice indices for parallel processing

func ProcessSlice

func ProcessSlice[T any, F any](in []T, workers int, f func(T) F) []F

ProcessSlice processes items concurrently using a worker pool

func ProcessSliceFn

func ProcessSliceFn[T any](in []T, workers int, f func(T))

ProcessSliceFn processes items in chunks concurrently

Types

This section is empty.

Jump to

Keyboard shortcuts

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