Skip to content

Commit b0418f3

Browse files
committed
Update Readme examples
1 parent da0da6a commit b0418f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ pip install toller
5252
```python
5353
import asyncio
5454
import random
55+
import toller
5556
from toller import TransientError, FatalError, MaxRetriesExceeded, OpenCircuitError
5657

5758
# Define potential API errors
@@ -146,7 +147,9 @@ if __name__ == "__main__":
146147
Often, different API endpoints for the same service share an overall rate limit.
147148

148149
```python
150+
import asyncio
149151
import time
152+
import toller
150153
from toller import CallRateLimiter # For creating a shared instance
151154

152155
# Assume these two functions call endpoints that share a single rate limit pool

0 commit comments

Comments
 (0)