I will talk about the difference between them in terms of their versions Timeas how I better understand them.
Both auditTimeand debounceTimewill first start the timer when the event occurs. Both will wait a given amount of time before they emit an event. The difference is that it debounceTimeresets the timer whenever a new event arrives, but auditTimenot. auditTimewill issue the most recent event after a given number of milliseconds, regardless of whether it is still receiving events. debounceTimewill wait for a break in events. You said you read the documentation, but just to double check I found this document particularly useful.
qfwfq source
share