pool

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: BSD-3-Clause Imports: 3 Imported by: 2

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 New

func New(n int) *Pool

func (*Pool) Do

func (p *Pool) Do(f func()) error

This will only return an error if the pool is stopped

func (*Pool) Stop

func (p *Pool) Stop()

func (*Pool) Unlock

func (p *Pool) Unlock()

func (*Pool) WaitCount

func (p *Pool) WaitCount() int

func (*Pool) WaitLock

func (p *Pool) WaitLock()

Jump to

Keyboard shortcuts

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