Documentation
¶
Index ¶
Constants ¶
View Source
const ( PriorityLow int = iota PriorityNormal PriorityHigh PriorityCritical )
The priority levels for the priority Queue.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
Queue implements a FIFO data structure.
func (*Queue) Append ¶
func (q *Queue) Append(data interface{})
Append adds the data to the Queue at priority level PriorityNormal.
func (*Queue) AppendPriority ¶ added in v3.9.0
AppendPriority adds the data to the Queue with respect to priority.
func (*Queue) Process ¶ added in v3.9.0
func (q *Queue) Process(callback func(interface{}))
Process will execute the callback parameter for each element on the Queue.
func (*Queue) SendSignal ¶ added in v3.9.0
func (q *Queue) SendSignal()
SendSignal puts an element on the queue signal channel.
Click to show internal directories.
Click to hide internal directories.