parallel

package
v0.0.0-...-157c9c8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(worker func(coreIdx int)) *sync.WaitGroup

Run takes a worker that will operate on some workload until complete and runs it on each core.

func RunRange

func RunRange(max int, worker func(rangeIdx, coreIdx int)) *sync.WaitGroup

RunRange will call worker in parallel with every int from 0 to max (0 inclusive, max exclusive).

Types

This section is empty.

Jump to

Keyboard shortcuts

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