remove(taskObj) {
    const index = this.queue.indexOf(taskObj);
    if (index > -1) {
      this.queue.splice(index, 1);
    }
    return index;
  }
Delete a task from the task queue
@param {object} taskObj - a task config object
@return {number} the task index
@public