-
-
Notifications
You must be signed in to change notification settings - Fork 183
Timeout wrapper #335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout wrapper #335
Conversation
|
@florian-schunk Hey, I like the approach you implemented! |
Fix method signature
|
@florian-schunk Hey. I fixed a small block method signature inconsistency and added TS defs. Here is the link to documentation https://github.com/animir/node-rate-limiter-flexible/wiki/RLWrapperTimeouts Congrats! |
This PR adds a Rate-limiter wrapper, that can add an end-to-end timeout on any rate-limiter.
The wrapper accepts an insuranceLimiter that gets used in case of any error of the wrapped limiter, including timeouts.
The wrapper approach is based on the discussion in #315