Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct { ProgressCallback func(enqueued, active, completed int64) // contains filtered or unexported fields }
Queue represents a work queue with multiple parallel workers.
func (*Queue) EnqueueBack ¶
func (v *Queue) EnqueueBack(callback CallbackFunc)
EnqueueBack adds the work to the back of the queue.
func (*Queue) EnqueueFront ¶
func (v *Queue) EnqueueFront(callback CallbackFunc)
EnqueueFront adds the work to the front of the queue.
Click to show internal directories.
Click to hide internal directories.