transferum
    Preparing search index...

    Class DebounceTransfer<T>

    Reactive channel with debounced emission to subscribers on push().

    Capabilities: isInput, isOutput, isPushable, isSubscribable

    Mechanics:

    1. push(data) — resets the previous timer, starts a new one for delay ms
    2. On timer expiry — writes the last value to _state, notifies subscribers, clears _state
    3. subscribe(handler) — subscribes to notifications
    4. destroy() — clears the timer, unsubscribes subscribers, clears state

    Each new push() resets the timer — subscribers are notified only after delay ms of silence following the last push().

    Configuration (DebounceTransferConfig):

    • delay: number — silence period before emitting data (ms)

    Difference from DelayedPushChannelTransfer:

    • Each push() resets the timer (rather than creating an independent one)
    • Subscribers receive only the last value after a silence period

    Use cases:

    • Debouncing user input (search, autosave)
    • Reducing event frequency to the "last" one after a pause
    • Replacing manual clearTimeout/setTimeout pattern

    Type Parameters

    • T

    Hierarchy (View Summary)

    Implements

    Index
    _state: ProxyReference<T>
    isAsyncPollingProxy: boolean = false
    isAsyncPullable: boolean = false
    isAsyncPushable: boolean = false
    isAsyncTriggerable: boolean = false
    isDuplex: true
    isGate: boolean = false
    isInput: true
    isOutput: true
    isPollingProxy: boolean = false
    isPollingSource: boolean = false
    isPullable: boolean = false
    isPushable: true
    isSubscribable: true
    isTriggerable: boolean = false