queue

package
v0.0.0-...-d5601ad Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTimeout = errors.New("timeout")

Functions

This section is empty.

Types

type Queue

type Queue interface {
	Empty() bool
	ReadQueue
	WriteQueue
}

func NewChannelQueue

func NewChannelQueue(size int) Queue

type ReadQueue

type ReadQueue interface {
	BlockingRead() string
	ReadWithTimeout(time.Duration) (string, error)
}

type WriteQueue

type WriteQueue interface {
	Write(string)
	WriteMany([]string)
}

Jump to

Keyboard shortcuts

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