concurrencychamp

package
v0.54.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrencyManager

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

func NewConcurrencyManager

func NewConcurrencyManager(initialChampion, minC, maxC int) (*ConcurrencyManager, error)

NewConcurrencyManager sets up with a chosen champion concurrency and typical config

func (*ConcurrencyManager) PickConcurrency

func (cm *ConcurrencyManager) PickConcurrency() int

func (*ConcurrencyManager) RecordDuration

func (cm *ConcurrencyManager) RecordDuration(concurrency int, d time.Duration)

Jump to

Keyboard shortcuts

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