lib/job.js
/**
   * Returns ready jobs and removes them from the queue.
   * @returns {Job[]} jobs to process
   */
Returns ready jobs and removes them from the queue.
@returns {Job[]} jobs to process
Returns ready jobs and removes them from the queue . @returns { Job [] } jobs to process
async ready () {
    process.nextTick(() => {
      this.readyJobs = []
    })
    return this.readyJobs
  }
async ready ( ) { process . nextTick ( ( ) => { this . readyJobs = [ ] } ) return this . readyJobs }
Returns ready jobs and removes them from the queue.
Returns ready jobs and removes them from the queue .