package
Version:
v0.0.0-...-fcc4a6d
Opens a new window with list of versions in this module.
Published: Jun 23, 2022
License: ISC
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.
type Worker struct {
Queue *Queue
}
Worker responsible for queue serving.
NewWorker initializes a new Worker.
DoWork processes jobs from the queue (jobs channel).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.