Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pydata/xarray
/ acquire
Method
acquire
xarray/backends/locks.py:220–221 ·
view source on GitHub ↗
(self, blocking=True)
Source
from the content-addressed store, hash-verified
218
self.locks = tuple(set(locks))
# remove duplicates
219
220
def
acquire(self, blocking=True):
221
return
all(acquire(lock, blocking=blocking)
for
lock in self.locks)
222
223
def
release(self):
224
for
lock in self.locks:
Callers
nothing calls this directly
Calls
1
acquire
Function · 0.85
Tested by
no test coverage detected