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
threading.Lock.aquire takes an argument named timeout, using seconds rather than milliseconds with -1 to indicate no timeout.
It would be nice to have a drop-in-compatible interface for pals.Lock.aquire, using something like
def aquire(self, ..., timeout=None):
if aquire_timeout is None and timeout is not None:
acquire_timeout = 0 if timeout<0 else 1+int(timeout*1000)
Also, in the same function: It looks like it is not currently possible to override the default aquire_timeout with 0 (no timeout) due to the acquire_timeout or ... construction. It should perhaps be changed to
acquire_timeout = acquire_timeout if acquire_timeout is not None else self.aquire_timeout
The text was updated successfully, but these errors were encountered:
threading.Lock.aquire
takes an argument namedtimeout
, using seconds rather than milliseconds with -1 to indicate no timeout.It would be nice to have a drop-in-compatible interface for
pals.Lock.aquire
, using something likeAlso, in the same function: It looks like it is not currently possible to override the default
aquire_timeout
with 0 (no timeout) due to theacquire_timeout or ...
construction. It should perhaps be changed toThe text was updated successfully, but these errors were encountered: