MCPcopy Create free account
hub / github.com/dask/dask / __init__

Method __init__

dask/utils.py:1314–1320  ·  view source on GitHub ↗
(self, token: Hashable | None = None)

Source from the content-addressed store, hash-verified

1312 lock: Lock
1313
1314 def __init__(self, token: Hashable | None = None):
1315 self.token = token or str(uuid.uuid4())
1316 if self.token in SerializableLock._locks:
1317 self.lock = SerializableLock._locks[self.token]
1318 else:
1319 self.lock = Lock()
1320 SerializableLock._locks[self.token] = self.lock
1321
1322 def acquire(self, *args, **kwargs):
1323 return self.lock.acquire(*args, **kwargs)

Callers 1

__setstate__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected