Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
17 lines
676 B
Plaintext
17 lines
676 B
Plaintext
/**
|
|
* Error that is thrown on timeouts.
|
|
*/
|
|
export declare class TimeoutError extends Error {
|
|
constructor(message?: string);
|
|
}
|
|
/**
|
|
* Adds a timeout to a promise and rejects if the specified timeout has elapsed. Also rejects if the specified promise
|
|
* rejects, and resolves if the specified promise resolves.
|
|
*
|
|
* <p> NOTE: this operation will continue even after it throws a {@link TimeoutError}.
|
|
*
|
|
* @param promise promise to use with timeout.
|
|
* @param timeout the timeout in milliseconds until the returned promise is rejected.
|
|
*/
|
|
export declare function callWithTimeout<T>(promise: Promise<T>, timeout: number): Promise<T>;
|
|
//# sourceMappingURL=timeout.d.ts.map |