from typing import Coroutine
from typing import Any
import asyncio


def run_async(coro: Coroutine) -> Any:
    """
    Used to run coroutines outside any coroutine.

    :param coro:    The coroutine to run.
    :returns:       Whatever the coroutine returned.
    """
    return asyncio.get_event_loop().run_until_complete(coro)