MCPcopy
hub / github.com/dask/dask / acquire

Method acquire

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

Source from the content-addressed store, hash-verified

2839
2840 class FussyLock(SerializableLock):
2841 def acquire(self, blocking=True, timeout=-1):
2842 if self.locked():
2843 raise RuntimeError("I am locked")
2844 return super().acquire(blocking, timeout)
2845
2846 lock = FussyLock()
2847 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