Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue represents a single instance of the queue data structure.
func (*Queue) Add ¶
func (q *Queue) Add(elem interface{})
Add puts an element on the end of the queue.
func (*Queue) Get ¶
Get returns the element at index i in the queue. If the index is invalid, the call will panic. This method accepts both positive and negative index values. Index 0 refers to the first element, and index -1 refers to the last.
type SyncQueue ¶
type SyncQueue struct {
// contains filtered or unexported fields
}
SyncQueue Synchronous FIFO queue
func (*SyncQueue) Pop ¶
func (q *SyncQueue) Pop() (v interface{})
Pop Pop an item from SyncQueue, will block if SyncQueue is empty
Click to show internal directories.
Click to hide internal directories.