twisted.internet.defer.DeferredFilesystemLock.deferUntilLocked(self, timeout=None) method documentationtwisted.internet.defer.DeferredFilesystemLock
View Source
Wait until we acquire this lock. This method is not safe for concurrent use.
| Parameters | timeout | the number of seconds after which to time out if the lock has not been acquired. (type: float or int) |
| Returns | a 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 |
Cancel a DeferredFilesystemLock.deferUntilLocked call.
| Parameters | reason | The reason why the call is cancelled. (type: failure.Failure) |