windowToggle
signature: windowToggle(openings: Observable, closingSelector: function(value): Observable): Observable
windowToggle(openings: Observable, closingSelector: function(value): Observable): Observable
Collect and emit observable of values from source between opening and closing emission.
Examples
Example 1: Toggle window at increasing interval
( StackBlitz | jsBin | jsFiddle )
Additional Resources
:newspaper: - Official docs
Split an RxJS observable conditionally with windowToggle
:video_camera: :dollar: - André Staltz
:file_folder: Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/windowToggle.ts
Last updated