Class

Throttle

Throttle

Provides throttle functionality.

Methods

# static throttle(func, wait, options) → {function}

Throttles a function, ensuring that it can only be called once per `wait` milliseconds.
Parameters:
Name Type Description
func function The function to throttle.
wait number The number of milliseconds to wait between function invocations.
options ThrottleOptions Optional configuration for the throttle.

View Source lib/Throttle.ts, line 90

A throttled version of the original function.
function