pyinterp.geohash.lock.AbstractLock.acquire

AbstractLock.acquire(timeout: Optional[float] = None, delay: Optional[float] = None)[source]

Acquire a lock.

Parameters
  • timeout (float, optional) – Maximum timeout for a lock acquisition.

  • delay (float, optional) – Waiting time between attempts.

Raises

LockError – If a lock has not been obtained before the specified timeout.