Documentation
¶
Index ¶
- Variables
- type Queue
- func (q *Queue[T]) Clear()
- func (q *Queue[T]) Length() int
- func (q *Queue[T]) Pop(handle func(T))
- func (q *Queue[T]) PopBlock() (pkg T)
- func (q *Queue[T]) PopJudge() (pkg T, err error)
- func (q *Queue[T]) PopSig() chan T
- func (q *Queue[T]) PopTimeout(timeout time.Duration) (pkg T, err error)
- func (q *Queue[T]) Push(pkg T)
- func (q *Queue[T]) PushBlock(pkg T)
- func (q *Queue[T]) PushJudge(pkg T) error
- func (q *Queue[T]) PushTimeout(pkg T, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrQueueIsEmpty = errors.New("queue is empty")
View Source
var ErrQueueIsEmptyTimeout = errors.New("queue is empty timeout")
View Source
var ErrQueueIsFull = errors.New("queue is full")
View Source
var ErrQueueIsFullTimeout = errors.New("queue is full timeout")
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.