I have an application in C# where I get update events from my database repository for each update in the database. When large operations are made on the database multiple events are fired and I want to update the GUI of the application when these events are received, but updating the GUI for each update is not exactly optimal.
What is a good way to "pool" events and only react when no more events are coming in, my first idea was to use a timer with a short duration and reset it for each new event received but this seems a bit clunky. Is there a better/faster/simpler way to solve this problem?
I would prefer not to have visible delays during normal updates.