(self, blocking=True, timeout=-1)
| 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) |
no test coverage detected