I have an autocomplete function, when a user types something, an API call is made, and then the debounce function delays the subsequent API call until the user is typing.