Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

A non-blocking movement command is still blocking my code

#2
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
)


Messages In This Thread
RE: A non-blocking movement command is still blocking my code - bypetsven- 07-06-2022, 08:35 PM



Users browsing this thread:
1 Guest(s)