executor

asyncio: Is it possible to cancel a future been run by an Executor?

asyncio: Is it possible to cancel a future been run by an Executor? Question: I would like to start a blocking function in an Executor using the asyncio call loop.run_in_executor and then cancel it later, but that doesn’t seem to be working for me. Here is the code: import asyncio import time from concurrent.futures import …

Total answers: 2