node-request-retry icon indicating copy to clipboard operation
node-request-retry copied to clipboard

Refactor request-retry to be asynchronous up to the retry strategy

Open lkuffo opened this issue 6 years ago • 1 comments

Is there any way to implement a custom retryStrategy which needs to be asynchronous?

Let's say, for example, my mustRetry option depends on some value that I have to query on a database.

lkuffo avatar Apr 09 '19 22:04 lkuffo

Hello!

Ahhh I was so young :) Indeed the whole API should be asynchronous (I did not make the mistake in the last libs), I will accept a PR (with tests) that will check if the yield value from the strategy is a promise and handle that accordingly :+1:

FGRibreau avatar Apr 24 '19 17:04 FGRibreau