Skip to content

How to throttle a stream to get values as early as possible, while getting at most one value every 500ms #6392

Answered by samal-rasmussen
Recursing asked this question in Q&A
Discussion options

You must be logged in to vote

The behavior of throttleTime changed in rxjs 7 so it should now work as you expect, if I understand correctly. It will now ensure the spacing between throttles is always at least the throttled amount.

I've described the change with a passing test on Stackoverflow:
https://stackoverflow.com/questions/57059666/how-does-throttletime-operators-config-parameter-work-throttleconfig/67701965#67701965

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@Recursing
Comment options

@cartant
Comment options

Comment options

You must be logged in to vote
6 replies
@josepot
Comment options

@Recursing
Comment options

@josepot
Comment options

@confraria
Comment options

@backbone87
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Recursing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants