Skip to content

Commit

Permalink
Update README.md [ci skip]
Browse files Browse the repository at this point in the history
Add getQueue() usage example
  • Loading branch information
aishek authored Jun 4, 2024
1 parent c61ec87 commit 12f431d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const http = rateLimit(axios.create(), { maxRequests: 2, perMilliseconds: 1000,
http.getMaxRPS() // 2
http.get('https://example.com/api/v1/users.json?page=1') // will perform immediately
http.get('https://example.com/api/v1/users.json?page=2') // will perform immediately
http.getQueue() // [{...}]
http.get('https://example.com/api/v1/users.json?page=3') // will perform after 1 second from the first one

// options hot-reloading also available
Expand Down

0 comments on commit 12f431d

Please sign in to comment.