small cleanup

This commit is contained in:
PartyWumpus 2024-09-27 18:05:16 +01:00
commit fb031f240a
3 changed files with 32 additions and 18 deletions

View file

@ -13,7 +13,8 @@ class Plugin:
async def long_running(self):
await asyncio.sleep(15)
await decky.emit("test_event", "Hello from the backend!", True, 2)
# Passing through a bunch of random data, just as an example
await decky.emit("timer_event", "Hello from the backend!", True, 2)
# Asyncio-compatible long-running code, executed in a task when the plugin is loaded
async def _main(self):