summaryrefslogtreecommitdiff
path: root/kvmd/aiotools.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2020-09-17 01:12:09 +0300
committerGitHub <[email protected]>2020-09-17 01:12:09 +0300
commit1f3cdd03be80b5a297db58c8118f63c1415f4584 (patch)
treee2e9321830f8fff5be3b03451c4468bee9c70cf5 /kvmd/aiotools.py
parent1c31b8f80d90c6d4b1311e7527343d54316974d5 (diff)
parent3f79f55a9ef6368b0bd2c76bf55c7e139ecfb9c7 (diff)
Merge pull request #8 from pikvm/libgpiod
Libgpiod
Diffstat (limited to 'kvmd/aiotools.py')
-rw-r--r--kvmd/aiotools.py3
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():