mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2025-10-28 22:12:26 -05:00
small cleanup
This commit is contained in:
parent
a2de28e318
commit
fb031f240a
3 changed files with 32 additions and 18 deletions
3
main.py
3
main.py
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue