Message345036
This is the expected behavior.
asyncio.ensure_future() returns not a future but a task for your case.
Task cancellation requires at least one context switch to finish the task.
P.S.
I suggest replacing `asyncio.ensure_future()` with `asyncio.create_task()` to avoid confusion. |
|
Date |
User |
Action |
Args |
2019-06-08 13:21:37 | asvetlov | set | recipients:
+ asvetlov, yselivanov, Roland Netzsch |
2019-06-08 13:21:37 | asvetlov | set | messageid: <1560000097.01.0.954638205945.issue37202@roundup.psfhosted.org> |
2019-06-08 13:21:37 | asvetlov | link | issue37202 messages |
2019-06-08 13:21:36 | asvetlov | create | |
|