parallel

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 2 Imported by: 1

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.

Jump to

Keyboard shortcuts

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