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)
Click to show internal directories.
Click to hide internal directories.