parallel

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() parallelJobs

func Run

func Run(ctx context.Context, name string, fn JobFunc) error

Types

type Job

type Job struct {
	Name string
	Func JobFunc
}

func (Job) Run

func (job Job) Run(ctx context.Context) error

func (Job) Runner

func (job Job) Runner(ctx context.Context) func() error

type JobFunc

type JobFunc func(context.Context) error

Jump to

Keyboard shortcuts

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