import asyncio


def run_async_method(loop, method, *args):
    """
    Run async method.

    :param loop: the loop to run method until complete.
    :param method: method to run.
    :param args: arguments of method.

    :return: result of "method".
    """
    if not loop:
        loop = asyncio.get_event_loop()
    return loop.run_until_complete(method(*args))