parallel

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForInt

func ForInt(to int, fn ForIntFn) error

ForInt iterate a function in parallel using goroutines Adapted from https://github.com/tsenart/nap scatter() function It waits for all goroutines to finish and returns the first error, if any; to <= 0 returns nil

Types

type ForIntFn

type ForIntFn func(i int) error

Jump to

Keyboard shortcuts

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