Vinyl
    Preparing search index...

    Function toDisposablePromise

    • Wraps a PromiseLike<Disposable> with a Disposable interface. Disposing will abort the operation and dispose the resolved value (if/when it resolves).

      Type Parameters

      • T extends PromiseLike<any>

      Parameters

      • promise: T

        A Promise-like object that resolves to a Disposable

      Returns T & Disposable

      An object that implements both PromiseLike<T> and Disposable