anx-api icon indicating copy to clipboard operation
anx-api copied to clipboard

Support retries for NetworkErrors

Open tsantef opened this issue 9 years ago • 0 comments

Now that the NetworkError error type is implemented in v4 It would be nice to add a retry adaptor using the https://www.npmjs.com/package/backoff library or similar. It would be configured by passing in a retry option object in the constructor. Defaults to off. The options could include an array of errors types to retry on (defaults to [NetworkError]), initial delay, and max delay.

tsantef avatar Oct 10 '16 19:10 tsantef