Pergunta de entrevista da empresa Thoughtworks

How to slow down events? Implement a debounce method which triggers the next event after 10s and not immediately. Example: In a gaming scenario, user hits up arrow continuously to move his car. This would fire key-up events continuously, how would you maintain the refresh rate on the screen?

Resposta da entrevista

Sigiloso

22 de set. de 2018

Search for throttling.