transferum
    Preparing search index...

    Class GateTransfer<T>

    Transfer with state management (gate) for controlling data flow.

    Capabilities: isInput, isOutput, isPushable, isSubscribable, isGate

    Mechanics:

    1. push(data) — writes and notifies subscribers only if active === true If the gate is closed (active === false), data is ignored
    2. subscribe(handler) — subscribes to notifications
    3. activate()/deactivate()/toggle() — control the gate state
    4. destroy() — deactivates the gate, unsubscribes subscribers, clears state

    Configuration (GateTransferConfig):

    • activated: boolean — initial gate state
    • initialValue?: T — initial value in _state

    Use cases:

    • Blocking data flow by condition (e.g., until the user is authenticated)
    • Enabling/disabling event processing
    • Implementing PassBridge and other bridges

    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: true
    isInput: true
    isOutput: true
    isPollingProxy: boolean = false
    isPollingSource: boolean = false
    isPullable: boolean = false
    isPushable: true
    isSubscribable: true
    isTriggerable: boolean = false