Interface ThrottleOptions

interface ThrottleOptions {
    leading: boolean;
    trailing: boolean;
}

Properties

Properties

leading: boolean

If true, the first invocation of a throttled function will pass through.

trailing: boolean

If true, when the throttle window time has elapsed, the function will be invoked. Either leading or trailing must be true. When trailing is true, timers will be used