concurrency

package
v0.0.0-...-0a3be77 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Retry = 150
)

Variables

View Source
var ConCurrencyGlobal = NewConcurrency()

Functions

This section is empty.

Types

type Concurrency

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

func NewConcurrency

func NewConcurrency() *Concurrency

func (*Concurrency) DecColdNum

func (c *Concurrency) DecColdNum(metric, taskId string)

func (*Concurrency) DoneTask

func (c *Concurrency) DoneTask(metric, taskId string)

func (*Concurrency) WaitToValid

func (c *Concurrency) WaitToValid(metric string) bool

WaitToValid Avoid excessive cold start concurrency

type Metric

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

func NewMetric

func NewMetric() *Metric

func (*Metric) SetColdFlag

func (m *Metric) SetColdFlag(flag bool)

type Point

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

Jump to

Keyboard shortcuts

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