gopool

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPool

func GetPool(poolName string) (*ants.Pool, error)

func Pools

func Pools() []string

Pools returns a sorted list of the names of the registered pools.

func Register

func Register(name string, pool *ants.Pool) error

Register makes a goroutine pool available by the provided name. If Register is called twice with the same name or if pool is nil, it returns error.

func UnregisterAllPools

func UnregisterAllPools()

Types

This section is empty.

Jump to

Keyboard shortcuts

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