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