tedious-plus / utils/Utils / waitWithTimeout
function waitWithTimeout(promise, ms): Promise<boolean>;
Defined in: utils/Utils.ts:44
Waits until a promise is settled, but at most for the specified time.
Promise<unknown>
Promise
unknown
The promise to wait for. Its result value or rejection reason is ignored.
number
The maximum time to wait, in milliseconds.
Promise<boolean>
boolean
true if the promise has been settled, false if the timeout has elapsed.
true
false
There was an error while loading. Please reload this page.
ExportMain
Index