class documentation
Mechanism that automatically locks given RemoteLock instance.
Will try to lock again after the RemoteLock is lost of any reason (i.e. connection lost,
kicked by user with higher priority).
| Method | __init__ |
Create a new AutoLock instance. |
| Async Method | lock |
Block until we own our RemoteLock. |
| Async Method | on |
Schedule lock task because the lock changed. |
| Instance Variable | logger |
Undocumented |
| Async Method | _lock |
Undocumented |
| Instance Variable | _break |
Undocumented |
| Instance Variable | _interval |
Undocumented |
| Instance Variable | _lock |
Undocumented |
Create a new AutoLock instance.
| Parameters | |
lock:RemoteLock | The RemoteLock instance to automatically lock. |
breakbool | Whether to use RemoteLock.break_lock() instead of RemoteLock.init_lock(). |
interval:float | How many seconds between two consecutive lock attempts. |