Unable to call 'sub' function
async def sub(a, b):
return a - b
Error:
sys:1: RuntimeWarning: coroutine 'sub' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
err : Unsupported type returned (coroutine), only pure Python types are supported.
Unable to call 'execute' function
def execute(a, b):
loop = asyncio.get_event_loop()
answer = loop.run_until_complete(sub(a,b))
print(answer)
loop.close()
Error:
Segmentation fault: 11