Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add throttleImmediate #712

Closed
wants to merge 2 commits into from
Closed

add throttleImmediate #712

wants to merge 2 commits into from

Conversation

Phoscur
Copy link

@Phoscur Phoscur commented Feb 9, 2018

Created tests for #702

Tried to borrow from the debounceImmediate implementation. Still searching for better solution.

@semmel merging creates duplicates as expected :/

@Phoscur Phoscur mentioned this pull request Feb 12, 2018
src/throttle.js Outdated
changes.debounce(delay)
)
/*changes.flatMapFirst(value =>
Bacon.once(value).concat(Bacon.later(delay).filter(false))
Copy link
Author

@Phoscur Phoscur Feb 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raimohanska this is debounceImmediate, but it doesn't work because it throws away events while debouncing.. it has to somehow know when something happens inbetween and in that case emit the latest event after the stream calmed down.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see! Needs a bit more thought then...

@Phoscur
Copy link
Author

Phoscur commented Sep 5, 2024

Please reopen if this is still wanted, I haven't used Baconjs in a while.

@Phoscur Phoscur closed this Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants