footprintjs - v11.2.0
    Preparing search index...

    Interface AttemptSummary

    A series at a glance — stamped once, when the series ends (the Lens badge, §3.10). last is how it ended: the last record's next / reason (and category, retryOnThrew), or stop / aborted when the run's signal cut a wait (no attempt followed, so none is recorded).

    The SERIES' outcome, not the STAGE's. last.next: 'done' says the stage function returned; the stage can still fail after that — its commit can fail (a value nothing can clone), and a StageNode it returned can be refused at the run-time door (R5) — and then its onError fires with this summary unchanged. Whether the stage failed is the execution's own fact (its error), never read off this summary.

    interface AttemptSummary {
        aborted: number;
        count: number;
        effect?: AttemptEffect;
        failed: number;
        last: {
            category?: AttemptCategory;
            during?: "wait";
            effect?: AttemptEffect;
            next: "done" | "stop";
            reason: AttemptReason;
            retryOnThrew?: true;
        };
        ok: number;
        paused: number;
        timeout: number;
    }
    Index
    aborted: number
    count: number
    effect?: AttemptEffect

    Fold over every touching attempt that ran: unknown never cleared by a later answer.

    failed: number
    last: {
        category?: AttemptCategory;
        during?: "wait";
        effect?: AttemptEffect;
        next: "done" | "stop";
        reason: AttemptReason;
        retryOnThrew?: true;
    }

    Type Declaration

    • Optional Readonlycategory?: AttemptCategory
    • Optional Readonlyduring?: "wait"

      Present only when the series ended between physical attempts.

    • Optional Readonlyeffect?: AttemptEffect

      The last attempt's own effect; series uncertainty belongs to summary.effect.

    • Readonlynext: "done" | "stop"
    • Readonlyreason: AttemptReason
    • Optional ReadonlyretryOnThrew?: true
    ok: number
    paused: number
    timeout: number