mpsc

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

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

Queue 表示队列对象

func New

func New() *Queue

New 创建一个新的队列对象

func (*Queue) Destroy

func (q *Queue) Destroy()

Destory 销毁队列对象

func (*Queue) Empty

func (q *Queue) Empty() bool

Empty 检查队列是否为空

func (*Queue) Pop

func (q *Queue) Pop() interface{}

Pop 从队列头部弹出一个元素

func (*Queue) Push

func (q *Queue) Push(x interface{})

Push 向队列尾部插入一个元素

Jump to

Keyboard shortcuts

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