webdriver
Version:
A Node.js bindings implementation for the W3C WebDriver and WebDriver Bidi protocols
21 lines • 1.01 kB
TypeScript
/**
* Drop the timer armed by `createRequestSignal` once the attempt has settled.
* A late timeout would abort a signal the request no longer uses.
*/
export declare function clearAbortTimer(signal?: AbortSignal | null): void;
/**
* True when `signal` was aborted because `connectionRetryTimeout` elapsed.
* Chrome and Edge before 124 reject that abort as `AbortError` rather than
* `TimeoutError`, and browsers before Chrome/Edge 103 and Safari 16 have no
* `AbortSignal.timeout` at all.
*/
export declare function isConnectionTimeoutSignal(signal?: AbortSignal | null): boolean;
/**
* Abort when `timeout` elapses or when `signal` aborts.
*
* `AbortSignal.timeout` and `AbortSignal.any` are missing on the browsers
* the browser bundle still supports (Chrome 90, Edge 90, Firefox 90,
* Safari 14.1), so this stays on `AbortController` and `setTimeout`.
*/
export declare function createRequestSignal(timeout: number, signal?: AbortSignal | null): AbortSignal;
//# sourceMappingURL=abort.d.ts.map