Wait until we acquire this lock. This method is not safe for concurrent use.

Parameterstimeoutthe number of seconds after which to time out if the lock has not been acquired. (type: float or int)
Returnsa Deferred which will callback when the lock is acquired, or errback with a TimeoutError after timing out or an AlreadyTryingToLockError if the deferUntilLocked has already been called and not successfully locked the file.
Function _cancelLock Cancel a DeferredFilesystemLock.deferUntilLocked call.
Function _tryLock Undocumented
def _cancelLock(reason): (source)

Cancel a DeferredFilesystemLock.deferUntilLocked call.

ParametersreasonThe reason why the call is cancelled. (type: failure.Failure)
def _tryLock(): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.