Interface Destroyable

An interface for objects that require manual cleanup.

interface Destroyable {
    destroy(): Promise<void>;
}

Hierarchy (View Summary)

Implemented by

Methods

Methods

  • Dispose of this instance. The instance cannot be used after this method has been called.

    Returns Promise<void>