* fix: use lnbits linting, change to uv - formatting - prettier - pyright * dont ignore packagejson * readd poetry lock for integration tests * fix pyright * fix mypy * fix test? * fix lnbits version * fixup tests * fixup!
10 lines
256 B
Python
10 lines
256 B
Python
import asyncio
|
|
from typing import Any
|
|
|
|
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
|