queue

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 2 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 {
	Head   unsafe.Pointer
	Tail   unsafe.Pointer
	Length int32
}

func (*Queue) Dequeue

func (that *Queue) Dequeue() interface{}

func (*Queue) Enqueue

func (that *Queue) Enqueue(task interface{})

func (*Queue) IsEmpty

func (q *Queue) IsEmpty() bool

type TaskQueue

type TaskQueue interface {
	Enqueue(interface{})
	Dequeue() interface{}
	IsEmpty() bool
}

func NewQueue

func NewQueue() TaskQueue

Jump to

Keyboard shortcuts

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