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
added a commit
to elhardoum/abortcontroller-polyfill
that referenced
this issue
May 10, 2023
@elhardoum This cannot work because your @nekotoriy, not only Safari < 16: https://caniuse.com/mdn-api_abortsignal_timeout_static |
@mo @elhardoum Another static method |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout
The text was updated successfully, but these errors were encountered: