pool

package
v0.0.75 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT 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 {
	Burst    int32
	TaskFunc TaskHandler
	// contains filtered or unexported fields
}

func New

func New(burst int32, taskFunc TaskHandler) *Pool

func (*Pool) Error

func (p *Pool) Error() error

func (*Pool) Put

func (p *Pool) Put(task interface{})

func (*Pool) Stop

func (p *Pool) Stop()

func (*Pool) Wait

func (p *Pool) Wait() error

type TaskHandler

type TaskHandler func(task interface{}) error

Jump to

Keyboard shortcuts

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