-
Notifications
You must be signed in to change notification settings - Fork 19
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
Auto-release locks after a configurable amount of time has elapsed #14
Comments
I would very much like the scope of |
I'm not sure about auto-releasing but there is definitely the need to allow the user to manually release all locks. Consider my scenario: I have an API server (written in nodejs/express). A specific API request is dealing with multiple RxJS streams, each of which at some point requests a lock to do some processing. In case there is an error in any of the streams, the server will just send a status Please correct me if I'm wrong in my assumption. |
@XeniaSiskaki That sounds reasonable, and should be easy to add. Something like |
Something like this, yes! Or if you don't want to introduce a new function, I just use I can issue a PR if you want |
@XeniaSiskaki PR very welcome! If you're okay, I think I prefer a separate function. Thanks! |
This can help with preventing locks that are never released due to unhandled errors or in some cases where network calls take excessively long to complete
The text was updated successfully, but these errors were encountered: