Closed yutak23 closed 1 year ago
It would be nice to update the docs of this function and maybe mention the use case mentioned in #236. WDYT?
It would be nice to update the docs of this function and maybe mention the use case mentioned in #236. WDYT?
Thank you for your comment. I have updated the RAEDME.
thanks a lot!
published as 3.8.1
This PR solves the https://github.com/softonic/axios-retry/issues/236.
Since
await
is simply ignored for synchronous functions, this change should not affect existing functionality.Added test to verify that onRetry works as expected even when it returns a
promise
.