pool

package
v0.0.0-...-716261e Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: GPL-2.0 Imports: 4 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 {
	// contains filtered or unexported fields
}

func NewPool

func NewPool(cap int64, expire int64) (*Pool, error)

func (*Pool) Release

func (p *Pool) Release()

func (*Pool) RunningWorkers

func (p *Pool) RunningWorkers() int

func (*Pool) Submit

func (p *Pool) Submit(task func()) error

Jump to

Keyboard shortcuts

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