transferum
    Preparing search index...

    Class AsyncReadTransfer<T>

    Asynchronous read adapter for AsyncOutputFlowInterface.

    Capabilities: isOutput, isAsyncPullable

    Mechanics:

    1. The constructor accepts config.flow: AsyncOutputFlowInterface
    2. asyncPull() — returns await flow.read()
    3. destroy() — does nothing (does not own the flow)

    Error handling:

    • If flow.read() throws an exception, onError is called.
    • With onError provided, the exception is suppressed, asyncPull() returns undefined.
    • Without onError, the exception is rethrown.

    Configuration (AsyncReadTransferConfig):

    • flow: AsyncOutputFlowInterface — target flow with async read()
    • onError?: ErrorHandler — error handler

    Use cases:

    • Reading data from async storage (IndexedDB, API)
    • Data source for async-polling transfers

    Type Parameters

    • T

    Hierarchy (View Summary)

    Implements

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