Instantiation options for a Throttler.

interface IOptions {
    edge?: "leading" | "trailing";
    limit?: number;
}

Properties

Properties

edge?: "leading" | "trailing"

Whether to invoke at the leading or trailing edge of throttle cycle. Defaults to leading.

limit?: number

The throttling limit; defaults to 500ms.