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

    Interface PluginRoomScope

    Owns room resources and rejects operation results after invalidation.

    interface PluginRoomScope {
        room: PluginRoomIdentity;
        signal: AbortSignal;
        addCleanup(cleanup: PluginCleanup): () => void;
        dispose(): void;
        disposeAsync(): Promise<void>;
        getCleanupErrors(): readonly Error[];
        run<T>(operation: (signal: AbortSignal) => Promise<T>): Promise<T>;
    }

    Hierarchy (View Summary)

    Index
    signal: AbortSignal

    Aborted synchronously when disposal starts.

    • 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>

    • Run an operation once, rejecting promptly when this scope is aborted.

      Type Parameters

      • T

      Parameters

      • operation: (signal: AbortSignal) => Promise<T>

      Returns Promise<T>