Skip to contents

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)