we should also cancel any pending task with `$timeout.cancel(pendingDebounce);`