https://github.com/andarist/callbag-drop-until
Starts emitting the input stream when another stream emits a value.
https://github.com/andarist/callbag-drop-until
callbag callbags
Last synced: 6 months ago
JSON representation
Starts emitting the input stream when another stream emits a value.
- Host: GitHub
- URL: https://github.com/andarist/callbag-drop-until
- Owner: Andarist
- Created: 2018-03-24T22:01:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-11T20:00:23.000Z (almost 7 years ago)
- Last Synced: 2024-10-26T01:36:44.695Z (11 months ago)
- Topics: callbag, callbags
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# callbag-drop-until
Drop emitted values from source until provided observable emits.
## Example
```js
import dropUntil from 'callbag-drop-until'
import forEach from 'callbag-for-each'
import pipe from 'callbag-pipe'
import timer from 'callbag-timer'pipe(
interval(1000),
dropUntil(timer(6000)),
forEach(value => {
// will log 5 6 7 8 ...
console.log(value)
}),
)
```