Documentation ¶
Overview ¶
Package priq 带优先级功的队列,可以进行select操作,并且有容量限制
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrQueueIsFull = errors.New("queue.is.full")
Functions ¶
This section is empty.
Types ¶
type EntryList ¶
type EntryList []*wrapEntry
type PriQueue ¶
type PriQueue struct {
// contains filtered or unexported fields
}
func NewPriQueue ¶
Click to show internal directories.
Click to hide internal directories.