get_dask_lock#
- get_dask_lock(name)[source]#
Get a dask lock with given name. This lock is used in rioxarray.to_raster (see https://corteva.github.io/rioxarray/stable/examples/dask_read_write.html)
If a Multiple worker client exists: returns a distributed.Lock() Elif a Multithreaded client exists: returns a threading.Lock() else: returns None
- Parameters:
name – The name of the lock
Returns: