Utility function to handle rate limiting with automatic retry
The operation to retry
Maximum number of retries (default: 3)
Promise that resolves with the operation result
Utility function to handle rate limiting with automatic retry