queue

package
v3.14.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Num int
	Dur time.Duration
}

type Queue

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

func New

func New() *Queue

func (*Queue) DrainNWithDuration

func (q *Queue) DrainNWithDuration(c *Config) []interface{}

func (*Queue) DrainNWithDurationByReflectType

func (q *Queue) DrainNWithDurationByReflectType(c *Config, eleType reflect.Type) interface{}

func (*Queue) DrainNWithDurationByType

func (q *Queue) DrainNWithDurationByType(c *Config, eleValue interface{}) interface{}

func (*Queue) Enqueue

func (q *Queue) Enqueue(v interface{})

func (*Queue) Len

func (q *Queue) Len() int

Jump to

Keyboard shortcuts

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