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
Make calculateDelay
promisable
#1266
Conversation
Excellent! This just needs tests :) Also Node.js 14.2.0 is failing somehow:
|
That issue is less trivial than it seems. https://github.com/sindresorhus/got/blob/master/source/as-promise/index.ts#L151,L224
After the While the previous commit make some sense (a86d7b0) that thing should never happen, hence it's not a fix. |
The only thing that came to my mind was restoring the order of the two events ( Note: my code needs a lot of cleaup and rewriting. |
BTW, this commit is passing on my Travic CI (and also on my PC). |
calculateDelay
promisablecalculateDelay
promisable
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
@sindresorhus Is this looking good? I'd like to release a patch version before any API depracations. |
Nice one! 🙌 |
Checklist
Fixes #1262