routinepool

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DefaultMaxRoutineNum = 100
)

Variables

View Source
var ErrorClosed = errors.New("pool is closed")

Functions

This section is empty.

Types

type RoutinePool

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

func NewRoutinePool

func NewRoutinePool(maxRoutineNum int) *RoutinePool

func (*RoutinePool) RunningNum

func (p *RoutinePool) RunningNum() int32

func (*RoutinePool) Submit

func (p *RoutinePool) Submit(task func()) (int, error)

func (*RoutinePool) WaitAndClose

func (p *RoutinePool) WaitAndClose()

Jump to

Keyboard shortcuts

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