code quality fixes and cleanup
This commit is contained in:
parent
29b1b17967
commit
2bbbcd4d65
32 changed files with 4943 additions and 1368 deletions
10
execution_queue.py
Normal file
10
execution_queue.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import asyncio
|
||||
from typing import Any, Dict
|
||||
|
||||
execution_queue: asyncio.Queue[Dict[str, Any]] = asyncio.Queue()
|
||||
|
||||
|
||||
async def enqueue(action):
|
||||
future = asyncio.Future()
|
||||
execution_queue.put_nowait({"action": action, "future": future})
|
||||
return await future
|
||||
Loading…
Add table
Add a link
Reference in a new issue