wait_rate_limit: Wait for ratelimit restore times to ellapse if necessary
Description
This function implements a standardized wait for rate limit resets
Usage
wait_rate_limit(.api_name, .min_tokens_reset)
Arguments
- .api_name
The name of the API for which rate limit we want to wait
- .min_tokens_reset
A token boundary at which we wish to reset (Typically should be larger than the size of the message)