footprintjs - v11.2.0
    Preparing search index...

    Interface RunLifecycle

    interface RunLifecycle {
        continuation(): PausedContinuation | undefined;
        forScope(scope: unknown): BoundRun;
        slot<T>(lifetime: "leg" | "runtime" | "component"): RunSlot<T>;
        view(): RunView | undefined;
        withRun<T>(body: (run: OwnedRun) => T | Promise<T>): Promise<T>;
    }
    Index
    • Private per-leg, per-runtime or per-component storage. A component slot declares this chart's entry root: internal unregistered subcharts share it; every separately mounted declared root gets a fresh bank. Declare before entry. An already-captured frame never follows a later declaration, and mismatched component access refuses. Every new leg, including same-executor resume, starts with fresh component values. Keep this lifecycle strongly reachable: a slot alone does not retain its weak component port.

      Type Parameters

      • T

      Parameters

      • lifetime: "leg" | "runtime" | "component"

      Returns RunSlot<T>