Manifold WASM Developer Guide
    Preparing search index...

    Interface ExecutionContext

    Observe and control a long-running Manifold evaluation. Pass to Manifold.statusWithContext() to observe progress and optionally request cancellation. Safe to read/write from any thread/worker.

    Cancellation is permanent for a Manifold: once cancelled and detected, the Manifold's status becomes 'Cancelled' and stays 'Cancelled'.

    interface ExecutionContext {
        cancel(): void;
        cancelled(): boolean;
        delete(): void;
        progress(): number;
    }
    Index

    Basics

    • Frees the WASM memory of this ExecutionContext, since these cannot be garbage-collected automatically.

      Returns void

    Methods

    • Request cancellation. Can be called from any context. Idempotent.

      Returns void

    • Has cancellation been requested?

      Returns boolean

    • Normalized progress in [0, 1]. Monotonic within an evaluation.

      Returns number