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
;; ;; source.next1;source.next2;pausable.pause;source.next3;source.next4;pausable.resume;source.next5;source.next6;source.complete; // Output: 1, 2, 5, 6