🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

rxjs-pausable

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rxjs-pausable

A RxJS pipable operator to pause and resume streams

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
455
-11.65%
Maintainers
1
Weekly downloads
 
Created
Source

rxjs-pausable

A RxJS pipable operator to pause and resume streams. See motivation and in-depth explanation of the source in this blog post.

Play with the demo in stackblitz.

Install

npm i rxjs-pausable

Usage

import { PausableObservable, pausable } from 'rxjs-pausable';
import { interval, Subject } from 'rxjs';

const source = new Subject();
const pausable = source.pipe(pausable()).subscribe(console.log);

source.next(1);
source.next(2);
pausable.pause();
source.next(3);
source.next(4);
pausable.resume();
source.next(5);
source.next(6);
source.complete();

// Output: 1, 2, 5, 6

Keywords

rxjs

FAQs

Package last updated on 15 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts