07-06-2022, 08:35 PM
I was able to get it working by using async.io:
Code:
async def non_blocking(loop, executor):
await asyncio.wait(
fs={
loop.run_in_executor(executor, getPosition),
loop.run_in_executor(执行人、钼veRobot),
},
return_when=asyncio.ALL_COMPLETED
)