@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
10 lines (9 loc) • 508 B
TypeScript
/**
* Waits for an asynchronous condition to be achieved.
* NOTE: This legacy utility is not a good replacement for proper angular techniques
*
* @param condition The function to determine if the desired state was achieved.
* @param errorMessage The message to fail the Jasmine test case with.
* @param duration The duration in milliseconds (ms) to wait for the desired condition.
*/
export declare function waitAsync(condition: () => boolean, errorMessage: string, duration?: number): Promise<void>;