Created
September 2, 2017 01:31
-
-
Save patmigliaccio/f13e38a86a42a93d93fc0a21a72db8b9 to your computer and use it in GitHub Desktop.
patmigliaccio.com/rate-limiting 3/20/2017
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const logMessageLimited = limiter(msg => { console.log(msg); }, 500); | |
for (let i = 0; i < 3; i++){ | |
logMessageLimited(`[Message Log] Action (${i}) rate limited.`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment