Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
func (*Queue) Consume ¶
func (q *Queue) Consume() inst.InstanceKey
Consume fetches a key to process; blocks if queue is empty. Release must be called once after Consume.
func (*Queue) Push ¶
func (q *Queue) Push(key inst.InstanceKey)
Push enqueues a key if it is not on a queue and is not being processed; silently returns otherwise.
func (*Queue) Release ¶
func (q *Queue) Release(key inst.InstanceKey)
Release removes a key from a list of being processed keys which allows that key to be pushed into the queue again.
Click to show internal directories.
Click to hide internal directories.