routine

package
v0.0.0-...-5d83258 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitPool

func InitPool(size int, sentryOption ...sentry.ClientOptions)

func IsInit

func IsInit() bool

func Submit

func Submit(labels map[string]string, f func())

func WithMaxRoutine

func WithMaxRoutine(maxRoutine int, tasks []func(), on_finish ...func())

Types

type PoolStatus

type PoolStatus struct {
	Free  int `json:"free"`
	Busy  int `json:"busy"`
	Total int `json:"total"`
}

func FetchRoutineStatus

func FetchRoutineStatus() *PoolStatus

Jump to

Keyboard shortcuts

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