package
Version:
v0.9.4
Opens a new window with list of versions in this module.
Published: Jun 15, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Pool defines the default queue pool
func Dispatch(handler func()) error
Dispatch runs the handler in a goroutine
NewPool creates the default queue pool
type Job struct {
Handler func()
ShouldQueue bool
}
newJob(...).dispatch()
func NewJob(handler func()) *Job
NewJob creates a new Job struct
Dispatch runs the handler in the queue or synchronously
Queue tells the job to run on a goroutine or not.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.