Documentation
¶
Index ¶
- Constants
- func Info() map[string]string
- func Init(conf *conf.Conf)
- func Put(meta Meta, param Any, action func(*Task))
- func Wait(meta Meta, params []Any, action func(*Task, *Lock) error)
- func WaitN(meta Meta, n int, action func(*Task, *Lock) error)
- type Any
- type Lock
- type Meta
- type Pool
- type Task
- type Work
Constants ¶
View Source
const ( StatusPrepare = iota StatusProcess StatusCancel StatusFinish )
View Source
const POOL = "pool"
View Source
const TASK = "task"
View Source
const WORK = "work"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Any ¶ added in v0.6.4
type Any = interface{}
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.