from typing import Coroutine
from typing import Any
import asyncio


def run_async(coroutine: Coroutine[Any, Any, None]) -> Any:
    """Run an async function from sync context."""
    return asyncio.get_event_loop().run_until_complete(coroutine)