package
Version:
v1.3.1-0...-83f5247
Opens a new window with list of versions in this module.
Published: Apr 8, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AnyQueue is a queue stores interface{}
func NewAnyQueue(eq func(a interface{}, b interface{}) bool, aa ...interface{}) *AnyQueue
NewAnyQueue builds a AnyQueue
func (q *AnyQueue) Get(val interface{}) interface{}
Get returns previous stored value that equals to val and remove it from the queue, if not found, return nil
Put inserts `val` into `q`.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.