function TaskSet(taskStartedCb, taskCompletedCb, taskFailedCb) {
        /** The maximum number of completed tasks which can be saved by this task set and retrieved via getCompletedTasks().
         * If this value is 0, then no task history is kept.
         * If this value is -1, then all task history is kept
         */
        this.maxCompletedTasks = 200;
        /** The percentage of 'maxCompletedTasks' to drop from the 'tasksCompleted' array when it's full. Must be between [0, 1] */
        this.dropCompletedTasksPercentage = 0.5;
        this.tasksCompletedCount = 0;
        this.tasksInProgress = new Map();
        this.tasksCompleted = [];
        this.taskStartedCallback = taskStartedCb || null;
        this.taskCompletedCallback = taskCompletedCb || null;
        this.taskFailedCallback = taskFailedCb || null;
    }
/** Create an empty task set with option started, completed, and failed callbacks
     * @param [taskStartedCb] a function to call when a task starts (i.e. when startTask() is called)
     * @param [taskCompletedCb] a function to call when a task completes
     * @param [taskFailedCb] a function to call when a task fails
     */
Create an empty task set with option started, completed, and failed callbacks
@param [taskStartedCb] a function to call when a task starts  is called)
@param [taskCompletedCb] a function to call when a task completes
@param [taskFailedCb] a function to call when a task fails
Create an empty task set with option started completed and failed callbacks @param [ taskStartedCb ] a function to call when a task starts is called ) @param [ taskCompletedCb ] a function to call when a task completes @param [ taskFailedCb ] a function to call when a task fails
function TaskSet(taskStartedCb, taskCompletedCb, taskFailedCb) {
        this.maxCompletedTasks = 200;
        this.dropCompletedTasksPercentage = 0.5;
        this.tasksCompletedCount = 0;
        this.tasksInProgress = new Map();
        this.tasksCompleted = [];
        this.taskStartedCallback = taskStartedCb || null;
        this.taskCompletedCallback = taskCompletedCb || null;
        this.taskFailedCallback = taskFailedCb || null;
    }
function TaskSet ( taskStartedCb , taskCompletedCb , taskFailedCb ) { this . maxCompletedTasks = 200 ; this . dropCompletedTasksPercentage = 0.5 ; this . tasksCompletedCount = 0 ; this . tasksInProgress = new Map ( ) ; this . tasksCompleted = [ ] ; this . taskStartedCallback = taskStartedCb || null ; this . taskCompletedCallback = taskCompletedCb || null ; this . taskFailedCallback = taskFailedCb || null ; }
Create an empty task set with option started, completed, and failed callbacks
 @param [taskStartedCb] a function to call when a task starts (i.e.
Create an empty task set with option started completed and failed callbacks @param [ taskStartedCb ] a function to call when a task starts ( i . e .
/** The maximum number of completed tasks which can be saved by this task set and retrieved via getCompletedTasks().
         * If this value is 0, then no task history is kept.
         * If this value is -1, then all task history is kept
         */ /** The percentage of 'maxCompletedTasks' to drop from the 'tasksCompleted' array when it's full. Must be between [0, 1] */