workpool

package
v0.3.14 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HybridPool

type HybridPool struct {
	// contains filtered or unexported fields
}

func NewHybridPool

func NewHybridPool(minWorkers, maxWorkers int) *HybridPool

func (*HybridPool) Close

func (p *HybridPool) Close()

func (*HybridPool) Spawn

func (p *HybridPool) Spawn()

func (*HybridPool) Submit

func (p *HybridPool) Submit(ctx context.Context, task Task) error

func (*HybridPool) Wait

func (p *HybridPool) Wait()

type Task

type Task interface{ Do() }

Jump to

Keyboard shortcuts

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