cefn / watchable

Repo for @watchable/store and supporting packages.
MIT License
5 stars 1 forks source link

Remove retry in favour of backoff. Add retryAllowed logic #69

Closed cefn closed 3 months ago

cefn commented 3 months ago

Removes the legacy handling of retries in favour of using the BackoffRetry everywhere (this can now be invoked with no delay options).

Adds an option for you to define a predicate that determines if a retry will be allowed, based on the error which was thrown by the request, else the rejection will be allowed to propagate as normal (as if there was no retry).