import asyncio


def run_in_loop(future):
    """Run a co-routine in the default event loop"""

    try:
        result = asyncio.get_event_loop().run_until_complete(future)
    except Exception as ex:
        print("Exception: {}".format(ex))
        raise

    return result