A task executor that guarantees a task is only executed at most once per every wait milliseconds. Useful for rate-limiting execution of tasks to a steady frequency.
wait
Minimum milliseconds between invocations.
Additional configuration options.
Invoke on the leading edge. Default true.
true
Invoke on the trailing edge. Default true.
Optional
A task executor that guarantees a task is only executed at most once per every
waitmilliseconds. Useful for rate-limiting execution of tasks to a steady frequency.Param: wait
Minimum milliseconds between invocations.
Param: options
Additional configuration options.
Param: options.leading
Invoke on the leading edge. Default
true.Param: options.trailing
Invoke on the trailing edge. Default
true.