using libgpiod for the gpio atx

This commit is contained in:
Devaev Maxim
2020-09-13 10:47:53 +03:00
parent bddabc4742
commit 002823b6e1
4 changed files with 148 additions and 62 deletions

View File

@@ -97,6 +97,9 @@ class AioNotifier:
async def notify(self) -> None:
await self.__queue.put(None)
def notify_sync(self) -> None:
self.__queue.put_nowait(None)
async def wait(self) -> None:
await self.__queue.get()
while not self.__queue.empty():