Example for a StackOverflow question about rate limiting a function call.