Documentation
¶
Overview ¶
Package queue provides a bounded channel-based queue.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
PoolSize int
PoolChan chan interface{}
}
Queue is a bounded channel-based queue.
func (*Queue) Exchange ¶
Exchange resizes the queue for reuse. Returns the number of items that can be added.
func (*Queue) Pull ¶
func (this *Queue) Pull() interface{}
Pull removes and returns an item from the queue.
Click to show internal directories.
Click to hide internal directories.