lib/Queue.js
/**
   * Run a queue of jobs consecutivly. 
   * @param {*=} data Optional data that can be sent to the queue 
   * upon execution.
   * @param {runCallBack=} callback Optinal callback to becalledwhen the
   * run completes/ 
   */
Run a queue of jobs consecutivly.
@param {*=} data Optional data that can be sent to the queue
upon execution.
@param {runCallBack=} callback Optinal callback to becalledwhen the
run completes
Run a queue of jobs consecutivly . @param { * = } data Optional data that can be sent to the queue upon execution . @param { runCallBack = } callback Optinal callback to becalledwhen the run completes
async run(data=null) {
    let workingData = new QueueData(data); 
    for (const job of this.jobs.values() ) {
      const results = await job(workingData.value);
      if (results) {
        workingData.value = results;
      }
    }
    return workingData;
  }
async run ( data = null ) { let workingData = new QueueData ( data ) ; for ( const job of this . jobs . values ( ) ) { const results = await job ( workingData . value ) ; if ( results ) { workingData . value = results ; } } return workingData ; }
Run a queue of jobs consecutivly.
Run a queue of jobs consecutivly .