Limit to a specified number of jobs launched within each intervalMs.

interface RateOptions {
    intervalMs: number;
    intervalSlots?: number;
}

Properties

intervalMs: number

The length of each scheduling interval.

intervalSlots?: number

The number of jobs which can be carried out in one scheduling interval (default is 1).