Documentation
¶
Index ¶
- type Queue
- func (q *Queue) Close()
- func (q *Queue) IsClose() bool
- func (q *Queue) Len() int
- func (q *Queue) Pop() (v interface{})
- func (q *Queue) Push(v interface{})
- func (q *Queue) TryPop() (v interface{}, ok bool)
- func (q *Queue) TryPopTimeout(tm time.Duration) (v interface{}, ok bool)
- func (q *Queue) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
Queue queue
func (*Queue) Close ¶
func (q *Queue) Close()
Close Queue After close, Pop will return nil without block, and TryPop will return v=nil, ok=True
func (*Queue) TryPopTimeout ¶
TryPopTimeout 试着取出队列(塞模式+timeout)返回ok == false 表示超时
Click to show internal directories.
Click to hide internal directories.