pyinterp.geohash.lock.Lock.acquire

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

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.