Thursday, 17 December 2015

Python: Maximum time out for blocking operations

‘threading.TIMEOUT_MAX’ value specifies the maximum value allowed for the timeout parameter of blocking functions like Lock.acquire(), RLock.acquire(), Condition.wait() etc. If you specify timeout greater than this value will raise an OverflowError.
>>> import threading
>>> print(threading.TIMEOUT_MAX)
9223372036.0



Previous                                                 Next                                                 Home

No comments:

Post a Comment