Documentation
¶
Overview ¶
`parallel` package provides functions for parallel processing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParallelGroup ¶
type ParallelGroup struct {
// contains filtered or unexported fields
}
func GroupUp ¶
func GroupUp(fns ...any) *ParallelGroup
GroupUp initializes a new ParallelGroup with the given functions.
func (*ParallelGroup) AwaitNoResult ¶ added in v0.2.5
func (pg *ParallelGroup) AwaitNoResult()
AwaitNoResult waits for all functions to complete without returning results. This is optimized for functions that do not return values, avoiding result collection overhead.
func (*ParallelGroup) AwaitResult ¶
func (pg *ParallelGroup) AwaitResult() [][]any
AwaitResult waits for all functions to complete and returns their results.
func (*ParallelGroup) Run ¶
func (pg *ParallelGroup) Run() *ParallelGroup
Run starts the execution of all functions in parallel goroutines.
Click to show internal directories.
Click to hide internal directories.