Documentation ¶
Overview ¶
Package queue contains types to create queues.
Index ¶
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
}
Queue is a simple queue with concurency support.
func (*Queue) Do ¶
func (q *Queue) Do(job func())
Do puts a job at the end of the queue and blocks until executed.
func (*Queue) DoError ¶
DoError puts a job that can return an error at the end of the queue and blocks until executed.
func (*Queue) DoErrorHi ¶
DoErrorHi puts a task that can return an error at the end of the hi-priority queue and blocks until executed.
Click to show internal directories.
Click to hide internal directories.