@gmitch215/folio - v1.0.1
    Preparing search index...

    Class ManagedFolio

    The owner side of the managed backend. The original Wasm stack keeps control flow and host effects, and JSPI joins regions that lanes execute over copied snapshots.

    Index
    • Parameters

      • artifact: ManagedArtifact
      • options: {
            fuel?: number;
            imports?: Imports;
            lanes: readonly ManagedLaneTransport[];
            maximumFrameBytes?: number;
            maximumSnapshotBytes?: number;
            maxTransactionBytes?: number;
            memory?: Memory;
            promising?: readonly string[];
            snapshotEncoding?: "auto" | "dense";
        }
        • Optionalfuel?: number
        • Optionalimports?: Imports
        • lanes: readonly ManagedLaneTransport[]
        • OptionalmaximumFrameBytes?: number

          Largest request frame a lane transport accepts. A larger frame is not sent and the call falls back to the owner. The default is the snapshot limit plus 1 MiB, capped below the 32 MiB Workers RPC argument limit.

        • OptionalmaximumSnapshotBytes?: number

          Largest arena a run may snapshot; the default is 31 MiB.

        • OptionalmaxTransactionBytes?: number
        • Optionalmemory?: Memory
        • Optionalpromising?: readonly string[]
        • OptionalsnapshotEncoding?: "auto" | "dense"

          dense (default) sends the whole snapshot; auto elides zero pages, which lanes from 1.0.0 reject.

      Returns ManagedFolio

    diagnostics: string[] = []

    Optimization refusals and fallbacks seen so far.

    exports: WebAssembly.Exports

    The original native exports.

    • get memory(): Memory

      The canonical memory, which must fit the owner runtime. Throws when there is no unique one.

      Returns Memory

    • await using support; equivalent to close().

      Returns Promise<void>

    • Waits for the active run, then closes every lane. A failed disposer does not skip the rest.

      Returns Promise<void>

    • Runs one entry; regions go to lanes and results commit in order. One run at a time.

      Parameters

      • name: string
      • args: readonly unknown[] = []
      • options: { maximumWorkers?: number; parallel?: "auto" | "off" } = {}

      Returns Promise<ManagedReport>