Documentation
¶
Overview ¶
queueChan.go
Index ¶
- type QueueChan
- func (qu QueueChan) Capacity() int
- func (qu *QueueChan) Dynamic()
- func (qu QueueChan) Length() int
- func (qu *QueueChan) New(length ...int) *QueueChan
- func (qu *QueueChan) Pop() interface{}
- func (qu *QueueChan) PopChan() chan interface{}
- func (qu *QueueChan) PopChanPush() chan interface{}
- func (qu *QueueChan) PopChanPushTS() chan interface{}
- func (qu *QueueChan) PopChanTS() chan interface{}
- func (qu *QueueChan) PopPush() (e interface{})
- func (qu *QueueChan) PopPushTS() (e interface{})
- func (qu *QueueChan) PopTS() interface{}
- func (qu *QueueChan) Push(elems ...interface{}) error
- func (qu *QueueChan) PushTS(elems ...interface{}) error
- func (qu *QueueChan) Rotate(np int) error
- func (qu *QueueChan) RotateTS(np int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueueChan ¶
type QueueChan struct { sync.RWMutex Empty chan struct{} // contains filtered or unexported fields }
func (*QueueChan) PopChanPush ¶
func (qu *QueueChan) PopChanPush() chan interface{}
PopChanPush() returns a chan with the front elem from the queue and adds the elem at the end of the queue (cycling)
func (*QueueChan) PopChanPushTS ¶
func (qu *QueueChan) PopChanPushTS() chan interface{}
PopChanPushTS() threadsafe - returns a chan with the front elem from the queue and adds the elem at the end of the queue (cycling)
func (*QueueChan) PopPush ¶
func (qu *QueueChan) PopPush() (e interface{})
PopPush() returns the front elem from the queue and adds it to the end of the queue (cycling)
Click to show internal directories.
Click to hide internal directories.