MCPcopy
hub / github.com/pydata/xarray / DummyLock

Class DummyLock

xarray/backends/locks.py:242–258  ·  view source on GitHub ↗

DummyLock provides the lock API without any actual locking.

Source from the content-addressed store, hash-verified

240
241
242class DummyLock(Lock):
243 """DummyLock provides the lock API without any actual locking."""
244
245 def acquire(self, blocking=True):
246 pass
247
248 def release(self):
249 pass
250
251 def __enter__(self):
252 pass
253
254 def __exit__(self, *args):
255 pass
256
257 def locked(self):
258 return False
259
260
261def combine_locks(locks: Sequence[Lock]) -> Lock:

Callers 2

combine_locksFunction · 0.85
ensure_lockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…