Datalayer VS Code Extension - v0.0.17
    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

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    _disposables: Disposable[] = []

    Collection of child disposables to clean up.

    Accessors

    • get isDisposed(): boolean

      Gets whether this instance has been disposed.

      Returns boolean

      True if disposed, false otherwise.

    Methods

    • 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