-
Notifications
You must be signed in to change notification settings - Fork 106
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 for timeout like in axios #35
Comments
Can’t you just wrap it in a generic promise timeout library? |
This ibrary helps abstract the developer from thinking in promises terms. Look at the usage example, no (explicit) promises:
hence IMHO it would be helpful to be able to do something like this (async/wait style, no promises, no extra lines of code except for the try/catch):
|
With browser support being quite good now and the bundle size being low, I’m not going to be adding features that increase the bundle size if they can easily be accomplished by pulling in other modules. |
Cross-posting from #59:
|
See: axios/axios#1503
Being able to pass a timeout to the async call is convenient.
The text was updated successfully, but these errors were encountered: