mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-13 18:14:28 +05:00
fix asyncio.lock
This commit is contained in:
@@ -50,6 +50,10 @@ class PriorityLock(asyncio.Lock):
|
|||||||
finally:
|
finally:
|
||||||
self.release()
|
self.release()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def _loop(self):
|
||||||
|
return asyncio.get_event_loop()
|
||||||
|
|
||||||
async def acquire(self, priority=0) -> bool:
|
async def acquire(self, priority=0) -> bool:
|
||||||
"""Acquire a lock.
|
"""Acquire a lock.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user