holdWhen and pausable streams
See original GitHub issueHello! Recently, I decided to use holdWhen method in production code for making a pauseable stream (Bacon.repeatedly-based sequence), and, sadly, encountered a trouble that source stream releases lots of values which were buffered when it was ‘paused’. The behaviour I expected was just resuming the sequence from the pause point , without firing lots of buffered values.
An example below:
# 'pauser' property
pauseP = $stopper.asEventStream("click").scan(true, (a,b) -> b = !a)
# image sequence
images = $container.find("img").get()
Bacon.repeatedly(100, images)
.holdWhen(pauseP.not())
.assign reloadImage
Issue Analytics
- State:
- Created 10 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
How to pause and resume streams periodically - Kafka Streams
Hi I have a question. I have 2 topics. I want to periodically transfer a message from one topic to another. For example...
Read more >dominictarr/pause-stream - GitHub
This is a Stream that will strictly buffer when paused. Connect it to anything you need buffered. var ps = require('pause-stream')(); ...
Read more >Samsung Galaxy - How To Place Calls On Hold - YouTube
Learn how to place people on hold when you need to stop talking to ... When you are on a call, tap the...
Read more >Pause a stream | Datastream | Google Cloud
After starting a stream, you can pause it. When a stream is paused, Datastream won't pull any new data from the source database...
Read more >Pause and resume Observable Stream and only emit custom ...
Yes, pause of receiving events or messages (or ignore them during the pause time), but only receive the second custom stream messages. – ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

shouldn’t it be
or if it just inverting than just
But to answer your question, do you want
filter?with holdWhen you get
or do you want:
Well, I just merged #324 so you’ve got
bufferingThrottleandholdWhen. Enjoy bacon.js 0.7.13!