-
-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Description
I noticed the following code hangs. Is this not a supported usage?
from filelock import FileLock
with FileLock('.lock', is_singleton=True):
with FileLock('.lock', is_singleton=True):
...
This works fine:
from filelock import FileLock
lock1 = FileLock('.lock', is_singleton=True)
lock2 = FileLock('.lock', is_singleton=True)
with lock1:
with lock2:
...
Environment:
- Python 3.11.9
- filelock==3.14.0
- platform=MacOS Sonoma 14.5
Metadata
Metadata
Assignees
Labels
No labels