Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmpty is returned when the stack or queue is empty. ErrEmpty = errors.New("inMemoryQueue.go: queue is empty") )
Functions ¶
This section is empty.
Types ¶
type ConcurrentQueue ¶
type ConcurrentQueue struct {
// contains filtered or unexported fields
}
ConcurrentQueue concurrent queue
func NewConcurrentQueue ¶
func NewConcurrentQueue(maxLength int) *ConcurrentQueue
func (*ConcurrentQueue) Close ¶
func (c *ConcurrentQueue) Close() error
func (*ConcurrentQueue) Dequeue ¶
func (c *ConcurrentQueue) Dequeue() (*Item, error)
func (*ConcurrentQueue) IsFull ¶
func (c *ConcurrentQueue) IsFull() bool
func (*ConcurrentQueue) Length ¶
func (c *ConcurrentQueue) Length() uint64
Click to show internal directories.
Click to hide internal directories.