Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelayQueue ¶
type DelayQueue struct {
// contains filtered or unexported fields
}
concurrency-safe, deadline-oriented queue that returns items after their delay period has expired.
func NewDelayQueue ¶
func NewDelayQueue() *DelayQueue
func (*DelayQueue) Add ¶
func (q *DelayQueue) Add(d Delayed)
func (*DelayQueue) Pop ¶
func (q *DelayQueue) Pop() Delayed
wait for the delay of the next item in the queue to expire, blocking if there are no items in the queue. does not guarantee first-come-first-serve ordering with respect to clients.
Click to show internal directories.
Click to hide internal directories.