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

Method acquire

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

Source from the content-addressed store, hash-verified

2826
2827 class FussyLock(SerializableLock):
2828 def acquire(self, blocking=True, timeout=-1):
2829 if self.locked():
2830 raise RuntimeError("I am locked")
2831 return super().acquire(blocking, timeout)
2832
2833 lock = FussyLock()
2834 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