1 min readNov 30, 2018
Potentially a bug ๐
However, the way you are using the throttle
could be a little troublesome. It actually blocks the thread with such a large for loop.
One way to test the throttle
might be to use setInterval
and invoke a throttle
inside it. That way you can check itโs working as intended.
For example, if the throttle
is set to 3000
and I have setInterval(this.throttleCall, 100)
I will only see a log every 3000
ms ๐