Executes an operation with sliding window rate limiting.
The result of the operation
The operation to execute
if rate limit is exceeded
if the operation fails