balancequeue

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceQueue

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

func New

func New(groupNumber int) *BalanceQueue

New 创建一个平衡队列 groupNumber 分组数量

func (*BalanceQueue) Pop

func (q *BalanceQueue) Pop(e Element)

func (*BalanceQueue) Push

func (q *BalanceQueue) Push(e Element)

func (*BalanceQueue) String

func (q *BalanceQueue) String() string

func (*BalanceQueue) Update

func (q *BalanceQueue) Update()

type Element

type Element interface {
	BalanceQueueHandler()
}

func ElementWrapper

func ElementWrapper(f func()) Element

Jump to

Keyboard shortcuts

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