You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the public acquire interface, you can pass poll_interval (defaults to 0.05). Because the __enter__ method calls acquire without any arguments, there is no way to specify the interval when using FileLock as a context manager.
I suggest adding poll_interval to FileLock.__init__, such that you can control the default (and as such, propagate it down to acquire when no value is given there).
The text was updated successfully, but these errors were encountered:
Hi,
In the public
acquire
interface, you can passpoll_interval
(defaults to0.05
). Because the__enter__
method callsacquire
without any arguments, there is no way to specify the interval when usingFileLock
as a context manager.I suggest adding
poll_interval
toFileLock.__init__
, such that you can control the default (and as such, propagate it down toacquire
when no value is given there).The text was updated successfully, but these errors were encountered: