package
Version:
v0.0.0-...-feaac18
Opens a new window with list of versions in this module.
Published: May 7, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
MyQueue queue
Close MyQueue
After close, Pop will return nil without block, and TryPop will return v=nil, ok=True
func (q *MyQueue) Pop() (v interface{})
Pop 取出队列,(阻塞模式)
func (q *MyQueue) Push(v interface{})
插入队列,非阻塞
试着取出队列(非阻塞模式)返回ok == false 表示空
Source Files
¶
Click to show internal directories.
Click to hide internal directories.