pool

package
v3.5.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: MIT Imports: 2 Imported by: 0

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