Task: Implement Cancellable Executor Tasks with asyncio
Task: Implement Cancellable Executor Tasks with asyncio: a task in Terminal-Lego-15k (Harbor dataset). When using Python's asyncio with loop.run in executor() to run blocking functions in a ThreadPoolExecutor , you may encounter issues when trying to cancel the running tasks. The standard…
The task
When using Python's `asyncio` with `loop.run_in_executor()` to run blocking functions in a `ThreadPoolExecutor`, you may encounter issues when trying to cancel the running tasks. The standard `future.cancel()` method does not actually stop a task that is already executing in the executor - it only works for tasks…
Part of PrimeIntellect/Terminal-Lego-15k.