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

fix(throttleTime): emit throttled values when complete if trailing=true #3559

Merged
merged 1 commit into from
Apr 13, 2018
Merged

fix(throttleTime): emit throttled values when complete if trailing=true #3559

merged 1 commit into from
Apr 13, 2018

Conversation

yozo1984
Copy link
Contributor

Description:
BREAKING CHANGE: This changes the behavior of throttleTime, in particular when throttling with trailing set to true. Throttling now treats observable complete as a trailing edge in addition to the timer and emits the last throttled value when observable completes before the current timer is up.

Related issue (if exists):
closes #3351

Treat complete as a trailing edge and emit the last throttled value when complete before the throttle time is up.

closes #3351
@benlesh
Copy link
Member

benlesh commented Apr 13, 2018

Thank you @yozo1984

@benlesh benlesh merged commit 3e846f2 into ReactiveX:master Apr 13, 2018
@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

throttleTime does not emit last value
2 participants