A debouncer counter for functions. Has an option to fire immediately.
| func |
any function to be debounced |
| wait |
the debounce wait time |
| immediate |
whether to fire the first item immediately. |
a Debouncer
PRIVATE: init (describe method here)
triggers the function, only once within the wait period
| ... args |
any arguments that need to be passed to the function. |
reset the debouncer, setting the counts to 0