InterviewBuddy
All interview questions

How do you avoid a race between two asynchronous UI requests?

Advanced

Answer

Track the latest request, cancel obsolete work when possible, and ignore responses that no longer match the current intent.