pool

package
v0.0.0-...-18a434d Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPoolSize

func GetPoolSize(poolSize, length int) int

Types

type TaskPool

type TaskPool struct {
	// contains filtered or unexported fields
}

func New

func New(poolSize, poolCacheSize int) TaskPool

func (TaskPool) Close

func (t TaskPool) Close()

func (TaskPool) Run

func (t TaskPool) Run(task func())

func (TaskPool) TryRun

func (t TaskPool) TryRun(task func()) bool

Jump to

Keyboard shortcuts

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