backoff-rxjs
Advanced tools
Comparing version 6.5.6 to 6.5.7
{ | ||
"name": "backoff-rxjs", | ||
"version": "6.5.6", | ||
"version": "6.5.7", | ||
"description": "A collection of helpful RxJS operators to deal with backoff strategies (like exponential backoff)", | ||
@@ -10,7 +10,2 @@ "main": "./index.js", | ||
"scripts": {}, | ||
"engines": { | ||
"node": ">=10.9.0 <13.0.0", | ||
"npm": ">=5.3.0", | ||
"yarn": ">=1.13.0 <2.0.0" | ||
}, | ||
"repository": { | ||
@@ -32,3 +27,3 @@ "type": "git", | ||
"peerDependencies": { | ||
"rxjs": "^6.4.0" | ||
"rxjs": "^6.5.5" | ||
}, | ||
@@ -35,0 +30,0 @@ "devDependencies": {}, |
# backoff-rxjs | ||
A collection of helpful RxJS operators to deal with backoff strategies (like exponential backoff) | ||
Angular-in-Depth article about this library is at https://blog.angularindepth.com/power-of-rxjs-when-using-exponential-backoff-a4b8bde276b0 | ||
Angular-in-Depth article about this library is at https://indepth.dev/power-of-rxjs-when-using-exponential-backoff/ | ||
@@ -44,1 +44,12 @@ ## intervalBackoff | ||
| config | [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) \| [RetryBackoffConfig](https://github.com/alex-okrushko/backoff-rxjs/blob/master/src/operators/retryBackoff.ts#L6) | required | Can take number as initial interval or a config with initial interval, optional max Interval, optional max number of retry attempts, optional function to cancel reties and optional backoff delay function (exponential by default) | | ||
```ts | ||
this.service.callBackend().pipe( | ||
retryBackoff({ | ||
initialInterval: 100, | ||
maxRetries: 12, | ||
// 👇 resets retries count and delays between them to init values | ||
resetOnSuccess: true | ||
}) | ||
) | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28401
55