We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fasteners
1 parent dfe0321 commit b100ec9Copy full SHA for b100ec9
src/zarr/v2/sync.py
@@ -2,8 +2,6 @@
2
from collections import defaultdict
3
from threading import Lock
4
5
-import fasteners
6
-
7
8
class ThreadSynchronizer:
9
"""Provides synchronization using thread locks."""
@@ -42,6 +40,7 @@ def __init__(self, path):
42
40
43
41
def __getitem__(self, item):
44
path = os.path.join(self.path, item)
+ import fasteners
45
lock = fasteners.InterProcessLock(path)
46
return lock
47
0 commit comments