Message 413461 - Python tracker (original) (raw)

The PR is pretty empty, it has a scaffolding for asyncio.timeouts module and its test only. I'll try to add something real tomorrow.

My plan is:

I think Andrew missed one case: in his second diagram, what if the explicit cancel() happened after the timeout (but still in the same iteration)? That's the case that makes me want to delete those two lines from Task.cancel() (see my earlier message).

Please let me write a comprehensive answer (with a third diagram, I've found these simple pictures useful) tomorrow.