Class Lock

Distributed Centralized Lock

Declaration

class Lock
source link

Documentation

Attributes

Examples

>>> lock = Lock('x')  # doctest: +SKIP
>>> lock.acquire(timeout=1)  # doctest: +SKIP
>>> # do things with protected resource
>>> lock.release()  # doctest: +SKIP

Methods

Reexports