AsyncDisposable Class

    Package: @esfx/disposable

    Indicates an object that has resources that can be explicitly disposed asynchronously.

    NOTE: It is not necessary to subclass AsyncDisposable. Merely having an [AsyncDisposable.asyncDispose]() method is sufficient.

    Declaration
    export declare class AsyncDisposable 

    Constructors

    constructor(disposeAsync)

    Creates an AsyncDisposable wrapper around a callback used to dispose resources.

    Declaration
    constructor(disposeAsync: () => void | PromiseLike<void>);
    Parameters
    disposeAsync
    () => void | PromiseLike<void>

    Generated by DocFX