Function useLimiter

Creates a limiter which can be used to debounce or throttle a function call.