Documentation
¶
Index ¶
- type Queue
- func (q *Queue) Channel() <-chan interface{}
- func (q *Queue) Insert(value interface{}, delay time.Duration)
- func (q *Queue) Length() int
- func (q *Queue) Pop() (value interface{}, success bool)
- func (q *Queue) PopCtx(ctx context.Context) (value interface{}, success bool)
- func (q *Queue) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func (*Queue) Channel ¶
func (q *Queue) Channel() <-chan interface{}
Channel returns channel which can be used to retrieve value from queue.
Click to show internal directories.
Click to hide internal directories.