-
Notifications
You must be signed in to change notification settings - Fork 288
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
Timeout #147
Comments
Nada? |
possible duplicate of #48? so can this be closed? Also a timeout isn't the right solution for aborting a fetch request as it will continue to download if you wrap the fetch promise with a timeout race. The right solution is to use abortcontroller const controller = new AbortController()
const signal = controller.signal
setTimeout(() => {
controller.abort()
}, 1000)
fetch(url, { signal }) |
FWIW, I've opened an issue whatwg/fetch#951 with a proposal for a |
Hi guys? There's anyway to set a timeout? (Without use a setTimeout() and throw some error manually)
PS: I'm using react.
Thanks!
The text was updated successfully, but these errors were encountered: