Interface IDisposable

For classes that hold resources that need to be disposed if the class is disposed.

interface IDisposable {
    dispose(): void;
}

Hierarchy (view full)

Implemented by

Methods

Methods

  • If the user needs to abandon this instance, they should use this to clean up active resources (like timers) and to release memory that would stall the garbage collector from disposing this object. It should assign any object reference to undefined as a strong indicator that the object has been disposed.

    Returns void

Generated using TypeDoc v0.25.12