0.0.5 • Published 3 years ago

rxjs-lossless-throttle v0.0.5

Weekly downloads
13
License
ISC
Repository
github
Last release
3 years ago

RxJS Lossless Throttling Operator

RxJS operator that losslessly throttles payloads. This operator arose from the need to losslessly throttle requests to a third party API that failed when fired too closely together.

Getting started

Install package

npm install rxjs-lossless-throttle@latest

Install peer dependencies

npm install rxjs@~6
npm install -D typescript@~4

Example usage

import {interval} from 'rxjs';
import {losslessThrottle} from 'rxjs-lossless-throttle';

const source = interval(500).pipe(
  losslessThrottle(3000, 1000)
);

source.subscribe(num => console.log(num));

See rxjs-lossless-throttle-example for a working example.

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago