Documentation ¶
Overview ¶
Package keyedqueue provides a queue with keyed elements allowing elements already on the queue to be easily replaced.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element interface { // Key returns the key of this element. Returned key must support // equality. Key() interface{} }
Element represents a queue element.
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue represents a queue of elements. Queue instances are safe to use with multiple goroutines.
Click to show internal directories.
Click to hide internal directories.