mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Added JSDoc description
This commit is contained in:
parent
8c24e093d3
commit
48597b0056
@ -24,6 +24,12 @@ class JobManager {
|
||||
this.logging = logging;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds job to queue
|
||||
*
|
||||
* @param {Function} job function to be executed in the queue
|
||||
* @param {Object} [data] data to be passed into the job
|
||||
*/
|
||||
addJob(job, data) {
|
||||
this.queue.push(async () => {
|
||||
await job(data);
|
||||
|
Loading…
Reference in New Issue
Block a user