Debounce options
Specify invoking on the leading edge of the timeout.
The maximum time func is allowed to be delayed before it’s invoked.
Specify invoking on the trailing edge of the timeout.
time to delay