Function tryDispose

  • Tries to dispose the given object. Does not throw and eats the exception if any.

    Parameters

    • disposable: undefined | null | IDisposable

      The object to dispose or a promise of the object to dispose.

    Returns boolean

    true if the object was disposed, false otherwise.

Generated using TypeDoc