continuesqueue

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

Continues Queue

Go Reference Go goreleaser GitHub go.mod Go version of a Go module GoReportCard GitHub license GitHub release

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 continues queue

func NewQueue

func NewQueue(buckets int, cap int, generator generatorFn) *Queue

NewQueue returns a Queue pointer

func (*Queue) Dequeue

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

Dequeue dequeue element retry if pool locked

func (*Queue) DequeueWithTimeout added in v1.1.0

func (q *Queue) DequeueWithTimeout(timeout time.Duration) (interface{}, error)

DequeueWithTimeout .

func (*Queue) EnqueueEqually added in v1.0.4

func (q *Queue) EnqueueEqually()

func (*Queue) Fill added in v1.0.8

func (q *Queue) Fill(list []interface{})

func (*Queue) Iter

func (q *Queue) Iter() <-chan interface{}

Iter iterate elements in the queue

func (*Queue) SetFillThreshold added in v1.1.0

func (q *Queue) SetFillThreshold(n int)

Jump to

Keyboard shortcuts

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