pyinterp.geohash.lock.ProcessSynchronizer

class pyinterp.geohash.lock.ProcessSynchronizer(path: Union[pathlib.Path, str], timeout: Optional[float] = None, lock: Optional[pyinterp.geohash.lock.AbstractLock] = None)[source]

Bases: pyinterp.geohash.lock.Synchronizer

Provides synchronization using locks handled by the file system.

Parameters
  • path (pathlib.Path, str) – The file used for locking/unlocking.

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

  • lock (AbstractLock, optional) – Instance handling the lock.

__init__(path: Union[pathlib.Path, str], timeout: Optional[float] = None, lock: Optional[pyinterp.geohash.lock.AbstractLock] = None)[source]

Methods