Message308232
I think the ship has sailed.
Now too many code is based on assumption that the only way to cancel a task from outer code is `task.cancel()`. Internally it is turned into
try:
await do_stuff()
except asyncio.CancelledError:
do_task_cancellation()
Raising *any* exception for cancellation breaks all existing code like this. Moreover figuring out if a task was cancelled from outside (by timeout for example) or exception was raised by inner code becomes impossible.
I suggest closing the issue with "wont fix" resolution. |
|
Date |
User |
Action |
Args |
2017-12-13 19:15:18 | asvetlov | set | recipients:
+ asvetlov, yselivanov, Oleg K2 |
2017-12-13 19:15:18 | asvetlov | set | messageid: <1513192518.03.0.213398074469.issue32104@psf.upfronthosting.co.za> |
2017-12-13 19:15:18 | asvetlov | link | issue32104 messages |
2017-12-13 19:15:17 | asvetlov | create | |
|