Function disposeThis

  • Disposes the IDisposable passed as "this".

    Parameters

    Returns boolean

    true if the object was disposed, false otherwise.

    Example

    const disposable: IDisposable = ...;
    const disposeFn = disposeThis.bind(disposable);
    disposeFn();

Generated using TypeDoc