• Type Parameters

    • T extends ((...args: any[]) => Promise<any>)

    Parameters

    • func: T

    Returns {
        finished: (() => boolean);
        reset: (() => void);
        run: T;
        wait: (() => Promise<any> | null);
    }

    • finished: (() => boolean)
        • (): boolean
        • Returns boolean

    • reset: (() => void)
        • (): void
        • Returns void

    • run: T
    • wait: (() => Promise<any> | null)
        • (): Promise<any> | null
        • Returns Promise<any> | null