-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
adding timeout param #18080
adding timeout param #18080
Conversation
I would actually prefer to have a separate exception class that extends from LockedException and contains the additional details like lock owner, time |
@juliushaertl this would limit the app to 18, which is not a big deal. Please have a look to the new TemporaryLockedException |
4a3bc37
to
a9102dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should still be type-hinted, even if nullable :)
ok, learnt something today. should be ok now |
Signed-off-by: Maxence Lange <[email protected]>
f7eda02
to
9bdc582
Compare
Signed-off-by: Maxence Lange <[email protected]>
This would help any app trying to save into a locked file to known the estimated timeout when catching the LockedException.
As an example, it will make the Text App not trying to sync every 5s if the lock is initiated by the FilesLock app.