pool

package
v3.33.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MaxConcurrencyLimit = -1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

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

func New

func New(concurrencyLimit int) *Pool

func (*Pool) Lock

func (pool *Pool) Lock()

func (*Pool) Spawn

func (pool *Pool) Spawn(job func())

func (*Pool) Unlock

func (pool *Pool) Unlock()

func (*Pool) Wait

func (pool *Pool) Wait()

Jump to

Keyboard shortcuts

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