Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LimitQueue ¶
type LimitQueue struct {
// contains filtered or unexported fields
}
func NewLimitQueue ¶
func NewLimitQueue(limit int) *LimitQueue
func (*LimitQueue) Add ¶
func (q *LimitQueue) Add(item interface{})
func (*LimitQueue) Clear ¶
func (q *LimitQueue) Clear()
func (*LimitQueue) Clone ¶
func (q *LimitQueue) Clone() []interface{}
func (*LimitQueue) Size ¶
func (q *LimitQueue) Size() int
type QueueEx ¶
type QueueEx struct {
// contains filtered or unexported fields
}
func NewQueueEx ¶
capacity <= 0: unlimited capacity
func (*QueueEx) PushNoWait ¶
Click to show internal directories.
Click to hide internal directories.