- asyncResettable<T>(func): {
finished: (() => boolean);
reset: (() => void);
run: T;
wait: (() => Promise<any> | null);
} Type Parameters
- T extends ((...args: any[]) => Promise<any>)
Returns {
finished: (() => boolean);
reset: (() => void);
run: T;
wait: (() => Promise<any> | null);
}
finished: (() => boolean)
- (): boolean
Returns boolean
reset: (() => void)
run: T
wait: (() => Promise<any> | null)
- (): Promise<any> | null
Returns Promise<any> | null