transferum
    Preparing search index...

    Class OrderedExecutor

    Sequential async task executor for ordered side-effect patterns.

    Used by AsyncSinkTransfer and AsyncWriteTransfer when the ordered config option is enabled. Tasks are queued and executed one at a time in submission order, regardless of their internal async duration.

    Mechanics:

    • submit(task) — appends an async task to a promise chain
    • reset() — discards the chain (used on destroy)

    Error handling:

    • Tasks are responsible for their own error handling (via handleError).
    • The chain wraps each task in .catch(() => undefined) so that a throwing task does not break the chain for subsequent tasks.
    Index
    • Resets the executor, discarding any pending (not yet started) tasks.

      Returns void

    • Appends an async task to the sequential execution chain. Returns a promise that resolves/rejects with the task's own outcome. The chain itself never rejects (errors are caught) so subsequent tasks always run.

      Parameters

      • task: () => Promise<void>

      Returns Promise<void>