footprintjs - v11.2.0
    Preparing search index...

    Class HandleImpl

    Internal handle implementation. Drivers call the _mark* methods to drive state transitions; consumers see only the readonly DetachHandle interface.

    Implements

    Index
    error: Error | undefined = undefined

    The work's error. Present iff status === 'failed'. Reading before terminal returns undefined.

    id: string

    Stable id assigned at detach time. The key of the in-flight registry (lookupDetachedHandle).

    result: unknown = undefined

    The work's result. Present iff status === 'done'. Reading before terminal returns undefined.

    status: "done" | "failed" | "running" | "queued" = 'queued'

    Current state. Read directly for sync access.

    • Transition to terminal 'done' with the given result. No-op if already terminal (defensive: prevents driver bugs from corrupting state).

      Parameters

      • result: unknown

      Returns void

    • Transition to terminal 'failed' with the given error. No-op if already terminal.

      Parameters

      • error: Error

      Returns void

    • Transition queued → running. No-op if already past 'queued'.

      Returns void