Socket
Socket
Sign inDemoInstall

backoff-rxjs

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backoff-rxjs - npm Package Compare versions

Comparing version 6.5.6 to 6.5.7

9

package.json
{
"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
})
)
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc