package
module
Version:
v0.0.0-...-3b7a6fc
Opens a new window with list of versions in this module.
Published: Sep 9, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
¶
Documentation
¶
Q is a thread-safe (lock-free) Queue
func (r *Q) Peek() (value interface{}, found bool)
Peek returns head item of queue without removing it.
if no item found returns nil,false
func (r *Q) Pull() (value interface{}, found bool)
Pull returns head item of queue and remove it.
if no item found returns nil,false
func (r *Q) Push(value interface{})
Push add value to tail of queue
Reset skip all items in queue
func (r *Q) Skip() (found bool)
Skip removes head item of queue.
returns false if no item found
Source Files
¶
Click to show internal directories.
Click to hide internal directories.