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

Method __init__

dask/array/tests/test_array_core.py:2340–2343  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2338
2339class CounterLock:
2340 def __init__(self):
2341 self.lock = Lock()
2342 self.acquire_count = 0
2343 self.release_count = 0
2344
2345 def acquire(self, blocking: bool = True, timeout: float = -1) -> bool:
2346 acquired = self.lock.acquire(blocking=blocking, timeout=timeout)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected