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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址