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

unexpected weight behaviour #80

Open
zb2oby opened this issue Jun 28, 2020 · 0 comments
Open

unexpected weight behaviour #80

zb2oby opened this issue Jun 28, 2020 · 0 comments

Comments

@zb2oby
Copy link

zb2oby commented Jun 28, 2020

Hello,

I've implemented PromiseThrottle with 1 call per second and with default weight except one call with a weight of 3. So i was expected that this call has been launched just after the last and the next call to be launched 3 times later. But the only things the weight seems to do is to apply some kind of timeout before it was launched and not before the next call.
To be clear here, a screenshot of devtools network tab where you can see what i mean.

throttle_

Why heaviest call begins 3 seconds after ? And why this is not the next call which get that behaviour ?

thanks

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

No branches or pull requests

1 participant