

def asyncio_call(function, *args, **kwargs):
    loop = asyncio.get_event_loop()
    function = ensure_future(function(*args, **kwargs), loop=loop)
    loop.run_until_complete(function)
    return args.result()

dataset/ETHPy150Open timothycrosley/hug/hug/interface.py asyncio_call/VarMisuse@50/58 `function`->`args`