Datalayer VS Code Extension - v0.0.18
    Preparing search index...

    Class DisposableAbstract

    Abstract base class for implementing the disposable pattern. Manages a collection of child disposables and ensures proper cleanup.

    Hierarchy (View Summary)

    Index
    _disposables: Disposable[] = []

    Collection of child disposables to clean up.

    • get isDisposed(): boolean

      Gets whether this instance has been disposed.

      Returns boolean

      True if disposed, false otherwise.

    • Registers a disposable to be cleaned up when this instance is disposed.

      Type Parameters

      • T extends Disposable

      Parameters

      • value: T

        The disposable to register.

      Returns T

      The registered disposable.

    • Disposes of this instance and all registered disposables.

      Returns void