Added JSDoc description

This commit is contained in:
Naz 2020-11-05 16:41:16 +13:00
parent 8c24e093d3
commit 48597b0056

View File

@ -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);