package
Version:
v0.21.6
Opens a new window with list of versions in this module.
Published: Mar 2, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Empty returns true if the queue is empty
Empty must be called from a single, consumer goroutine
Length returns length of queues
func (q *Queue) Pop() interface{}
Pop removes the item from the front of the queue or nil if the queue is empty
Pop must be called from a single, consumer goroutine
func (q *Queue) Push(x interface{})
Push adds x to the back of the queue.
Push can be safely called from multiple goroutines
Source Files
¶
Click to show internal directories.
Click to hide internal directories.