routine

package
v0.0.0-...-4d5b332 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 10 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 routinelabels.Labels, f func())

func WithMaxRoutine

func WithMaxRoutine(maxRoutine int, tasks []func(), onFinish ...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