Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue interface { // Add a element to the list tail, return false if list is full or closed Add(v interface{}) bool // Poll retrieve the element at list head Poll() interface{} // Size return the count of elements in queue Size() int // Close signal blockQueue list to avoid endless wait Close() }
Queue is the FIFO data structure
Click to show internal directories.
Click to hide internal directories.