promise-throttle icon indicating copy to clipboard operation
promise-throttle copied to clipboard

unexpected weight behaviour

Open zb2oby opened this issue 4 years ago • 0 comments

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

zb2oby avatar Jun 28 '20 15:06 zb2oby