package
Version:
v0.8.31-canary
Opens a new window with list of versions in this module.
Published: Jul 17, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Job - holds logic to perform some operations during queue execution.
Run performs job execution.
Queue holds name, list of jobs and context with cancel.
NewQueue instantiates new queue.
AddJob sends job to the channel.
AddJobs adds jobs to the queue and cancels channel.
type Worker struct {
Queue *Queue
}
Worker responsible for queue serving.
NewWorker initialises new Worker.
DoWork processes jobs from the queue (jobs channel).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.