I'm sure there must be something out there that'll do this for me.
I have a web user interface that shows a list of items. If you click on an item, two things will happen; the UI will be updated with immediately available information, and then an async request will be made to get more information. When that completes, it'll update another part of the UI. Simple, right?
But... What if I want to throttle the server requests? What if I click on another item while that information was being fetched, and end up with a race condition which might end up with the wrong info onscreen? What if by clicking on another item, I want the opportunity to cancel the preciously throttled fetch?
I've got a fair idea of what the code would look like in order to do this, but with all the edge cases it'd be nice to know if there was something out there already?