worker

package
v0.0.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultSize 默认worker数为cpu核心数的两倍
	DefaultSize = runtime.NumCPU() * 2
)

Functions

func GetSize

func GetSize() int

func GetTotal

func GetTotal() int64

func Running

func Running() int64

func SetSize

func SetSize(n int)

func StopWait

func StopWait()

func Submit

func Submit(taskName string) error

func Waiting

func Waiting() int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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