The method for limiting.
'none'
'debounce'
'throttle'
For the following examples, assume each x or - take 100ms and that the limit interval is 200ms:
x
-
If a function is called like: x--xxxx--x
x--xxxx--x
Debouncing
With debouncing, calls are grouped as long as repeated calls are requested within the limiting interval.
x--x-----x
---x------x---x
x--x-----xx
Throttling
With throttling, calls are run at most once per limiting interval.
x--x--x--x
---x--x--x--x
x--x--x--x--x
The method for limiting.
'none'- No limiting is applied so functions run immediately, every time they're called. The queue and priority are ignored.'debounce'- Functions calls are grouped'throttle'- Functions are called at most once per intervalFor the following examples, assume each
xor-take 100ms and that the limit interval is 200ms:xmeans function call-means nothing happenedIf a function is called like:
x--xxxx--xDebouncing
With debouncing, calls are grouped as long as repeated calls are requested within the limiting interval.
x--x-----x---x------x---xx--x-----xxThrottling
With throttling, calls are run at most once per limiting interval.
x--x--x--x---x--x--x--xx--x--x--x--x