jobqueue

package
v0.0.0-...-d69ce9d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2018 License: MIT Imports: 0 Imported by: 0

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

type Default

type Default struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL