-
Notifications
You must be signed in to change notification settings - Fork 78
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
Is it possible to set parameter for acquire? #67
Comments
So you would like this code: with Lock(blocking=False):
something raise an exception and skip the |
An alternative api that doesn't mess with the with Lock().acquire_context(blocking=False):
something |
Yes. |
@ionelmc Any chance to implement this? |
@tavor118sn sure, please make that PR. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
In
redis_lock/__init__.py
line: 341blocking
will always beTrue
when we use cache.lock inwith
block,Is it possible to set the parameter(blocking/timeout) from
__init__
function or another function?The text was updated successfully, but these errors were encountered: