dispatch

package
v0.31.6 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	Num    int
	PoolCh chan struct{}
}

func NewPool

func NewPool(num int) *Pool

func (*Pool) Run

func (p *Pool) Run(ctx context.Context, worker func(ctx context.Context))

func (*Pool) RunAndWait

func (p *Pool) RunAndWait(ctx context.Context, worker func(ctx context.Context) error) error

Jump to

Keyboard shortcuts

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