diff options
author | Devaev Maxim <[email protected]> | 2020-09-13 10:47:53 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-13 10:47:53 +0300 |
commit | 002823b6e1ae6a261e77ee83b358307c682ce65a (patch) | |
tree | 7f697c83a6523c9546ff8ef277c3669f90a73f48 /kvmd/aiotools.py | |
parent | bddabc4742ebd130020efc14c53675bf5c96e134 (diff) |
using libgpiod for the gpio atx
Diffstat (limited to 'kvmd/aiotools.py')
-rw-r--r-- | kvmd/aiotools.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmd/aiotools.py b/kvmd/aiotools.py index 84c6f314..dfd67f44 100644 --- a/kvmd/aiotools.py +++ b/kvmd/aiotools.py @@ -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(): |