-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support AbortSignal.timeout #73
Comments
Important thing, because it's feature breaks safari < 16 |
Here's a temporary fix: // safari polyfill
if ("AbortSignal" in window) {
AbortSignal.timeout = AbortSignal.timeout || ((duration) =>
{
const controller = new AbortController;
setTimeout(() => controller.abort(), duration);
return controller.signal;
});
} |
@elhardoum This cannot work because your @nekotoriy, not only Safari < 16: https://caniuse.com/mdn-api_abortsignal_timeout_static |
@mo @elhardoum Another static method |
the timeout implemented by @TechQuery is available in 1.7.6 now |
See https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout
The text was updated successfully, but these errors were encountered: