Skip to content

Commit 12f431d

Browse files
authored
Update README.md [ci skip]
Add getQueue() usage example
1 parent c61ec87 commit 12f431d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const http = rateLimit(axios.create(), { maxRequests: 2, perMilliseconds: 1000,
3030
http.getMaxRPS() // 2
3131
http.get('https://example.com/api/v1/users.json?page=1') // will perform immediately
3232
http.get('https://example.com/api/v1/users.json?page=2') // will perform immediately
33+
http.getQueue() // [{...}]
3334
http.get('https://example.com/api/v1/users.json?page=3') // will perform after 1 second from the first one
3435

3536
// options hot-reloading also available

0 commit comments

Comments
 (0)