• Type Parameters

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

    Parameters

    • func: T

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