Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Defaults = Default{/* contains filtered or unexported fields */}
Functions ¶
func QueueNext ¶
func QueueNext()
QueueNext function is used to send queue an acknowledgement when a task is completed.
func QueuePush ¶
func QueuePush(f func())
QueuePush function is used to push a task to queue
task := func(num int){ println(num) } jobqueue.QueuePush(func(){ task(7) jobqueue.QueueNext() })
func SetConcurrency ¶
func SetConcurrency(num int)
SetConcurrency is used to set limit on concuurent execution of task being pushed in the queue.
Types ¶
Click to show internal directories.
Click to hide internal directories.