package
Version:
v0.0.0-...-9c88ebf
Opens a new window with list of versions in this module.
Published: Aug 31, 2022
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package work is not specific to geometry logic. It is used to parallelize
work, which is useful when doing animation or rendering.
func Run(worker func(coreIdx int))
Run takes a worker that will operate on some workload until complete and
runs it on each core.
func RunRange(max int, worker func(rangeIdx, coreIdx int))
RunRange will call worker in parallel with every int from 0 to max (0
inclusive, max exclusive).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.