package
Version:
v1.4.0
Opens a new window with list of versions in this module.
Published: Feb 19, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
Queue is a simple concurrent safe queue
New is a constructor for a new concurrent safe queue.
func (q *Queue) Copy() []interface{}
Copy get the copy of queue.
func (q *Queue) Last() interface{}
Last returns the last of item.
Len returns the number of items in this queue.
func (q *Queue) Pop() interface{}
Pop returns the head of items.
func (q *Queue) Put(items ...interface{})
Put add the item to the queue.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.