pool

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultAntsPoolSize sets up the capacity of worker pool, 256 * 1024.
	DefaultAntsPoolSize = 10

	// ExpiryDuration is the interval time to clean up those expired workers.
	ExpiryDuration = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool = ants.Pool

Pool is the alias of ants.Pool.

func NewPool

func NewPool(poolSize int) (*Pool, error)

NewPool instantiates a new goroutine pool with poolSize argument or default pool size.

Jump to

Keyboard shortcuts

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