mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
11 lines
249 B
Python
11 lines
249 B
Python
"""Fire-and-forget sync tasks, held so the event loop keeps them alive."""
|
|
|
|
import asyncio
|
|
from typing import Any
|
|
|
|
from utils.background_tasks import fire_and_forget
|
|
|
|
|
|
def spawn_sync_task(coro: Any) -> asyncio.Task:
|
|
return fire_and_forget(coro)
|