@urth/metatell-sdk - v0.1.0
    Preparing search index...

    Interface PluginScope

    Owns resources whose lifetime is controlled by a plugin.

    interface PluginScope {
        signal: AbortSignal;
        addCleanup(cleanup: PluginCleanup): () => void;
        dispose(): void;
        disposeAsync(): Promise<void>;
        getCleanupErrors(): readonly Error[];
    }

    Hierarchy (View Summary)

    Index
    signal: AbortSignal

    Aborted synchronously when disposal starts.

    • Abort the signal and start cleanup once, in reverse registration order. Asynchronous cleanup does not delay the start of remaining cleanup.

      Returns void

    • Start disposal and wait until all pending cleanup has settled. Failures are collected instead of rejecting this promise. Cleanup added while waiting is included; cleanup added after completion is not. A cleanup must not await disposal of its own scope.

      Returns Promise<void>