MCPcopy Create free account
hub / github.com/dask/dask / acquire

Method acquire

dask/array/tests/test_array_core.py:2831–2834  ·  view source on GitHub ↗
(self, blocking=True, timeout=-1)

Source from the content-addressed store, hash-verified

2829
2830 class FussyLock(SerializableLock):
2831 def acquire(self, blocking=True, timeout=-1):
2832 if self.locked():
2833 raise RuntimeError("I am locked")
2834 return super().acquire(blocking, timeout)
2835
2836 lock = FussyLock()
2837 d = da.from_array(x, chunks=5, lock=lock, inline_array=inline_array)

Callers 3

getterFunction · 0.45
load_store_chunkFunction · 0.45
acquireMethod · 0.45

Calls 1

lockedMethod · 0.80

Tested by

no test coverage detected