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
windowToggle 📰 - Official docs
Split an RxJS observable conditionally with windowToggle 🎥 💵 - André Staltz
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/windowToggle.ts
Last updated