Call a function after an action has stopped for a given amount of time (e.g resizing)