fix asyncio.lock

This commit is contained in:
andvikt
2022-07-22 10:08:37 +03:00
parent ce2969c1e7
commit 2463b270e5

View File

@@ -50,6 +50,10 @@ class PriorityLock(asyncio.Lock):
finally:
self.release()
@property
def _loop(self):
return asyncio.get_event_loop()
async def acquire(self, priority=0) -> bool:
"""Acquire a lock.