Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked.
Invoking func.
Wait milliseconds.
Optional
Whether the func should be invoked immediately.
Debounced function along with its disposer.
Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked.