Skip to main

throttle

throttle

Signature - source.ts#L3728

function throttle(
    getDurationSource: () => Source<unknown>,
    config?: ThrottleConfig | null,
): IdentityOperator
function throttle<T>(
    getDurationSource: (value: T, index: number) => Source<unknown>,
    config?: ThrottleConfig | null,
): Operator<T, T>

ThrottleConfig

Signature - source.ts#L3699

interface ThrottleConfig {
    emitPendingOnEnd?: boolean | null
    leading?: boolean | null
    trailing?: boolean | null
}

defaultThrottleConfig

Signature - source.ts#L3708

var defaultThrottleConfig: ThrottleConfig