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

    Class Folio

    A same-process isolate group; callers give it exclusive memory access during each run.

    Index
    threadIds: number[] = []

    Thread ids of the worker isolates, in start order.

    • get capabilities(): Readonly<
          {
              automaticRegions: "none"
              | "control-flow"
              | "counted-loops";
              dependence: "serial" | "ordered-validation";
              physicalSharing: "none" | "same-process";
          },
      >

      Active sharing, extraction and validation mode; a one-worker pool reports none and serial.

      Returns Readonly<
          {
              automaticRegions: "none"
              | "control-flow"
              | "counted-loops";
              dependence: "serial" | "ordered-validation";
              physicalSharing: "none" | "same-process";
          },
      >

    • get diagnostics(): readonly string[]

      Module-wide reasons the optimizer refused or fell back. A refusal is not a proved dependency.

      Returns readonly string[]

    • get exports(): WebAssembly.Exports

      The original native exports, for trusted host integration. Raw calls bypass tracking.

      Returns WebAssembly.Exports

    • get memories(): Readonly<Record<string, WebAssembly.Memory>>

      Named imported and exported memory wrappers.

      Returns Readonly<Record<string, WebAssembly.Memory>>

    • get memory(): Memory

      The unique accessible arena, including a coordinator-exposed hidden memory. Throws otherwise.

      Returns Memory

    • await using support; equivalent to close().

      Returns Promise<void>

    • Joins worker termination and outstanding JSPI calls. Repeated calls share one join.

      Returns Promise<void>

    • Whether entry has an automatic plan or a native guard, by which mechanism, and why not.

      Parameters

      • entry: string

      Returns Readonly<
          {
              automatic: boolean;
              diagnostics: readonly string[];
              mechanism: "counted-loop"
              | "control-flow"
              | "native";
              nativeGuard: boolean;
          },
      >

    • Splits compiler-recognized loops automatically; otherwise runs the original entry.

      Parameters

      • entry: string
      • args: readonly unknown[] = []
      • options: RunOptions = {}

      Returns Promise<ExecutionReport>