https://github.com/iwstkhr/exp-backoff-counter
Exponential backoff counter using rxjs
https://github.com/iwstkhr/exp-backoff-counter
counter exponential-backoff rxjs
Last synced: about 1 year ago
JSON representation
Exponential backoff counter using rxjs
- Host: GitHub
- URL: https://github.com/iwstkhr/exp-backoff-counter
- Owner: iwstkhr
- License: mit
- Created: 2022-04-01T19:23:04.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-31T15:01:02.000Z (almost 2 years ago)
- Last Synced: 2025-01-05T14:21:11.520Z (over 1 year ago)
- Topics: counter, exponential-backoff, rxjs
- Language: TypeScript
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# exp-backoff-counter
An exponential backoff counter using rxjs.
## Install
```
npm install https://github.com/iwstkhr/exp-backoff-counter.git
```
## Usage
```typescript
import { ExpBackoffCounter } from '@iwstkhr/exp-backoff-counter';
const counter = new ExpBackoffCounter();
counter.counter$.subscribe(value => console.warn(value));
counter.next(2);
// Output
// 3
// 2
// 1
// 0
```
## License
MIT