[issue37202] Future.cancelled is not set to true immediately after calling Future.cancel
Roland Netzsch
report at bugs.python.org
Sat Jun 8 07:07:20 EDT 2019
New submission from Roland Netzsch <stuxcrystal at gmail.com>:
The attached file produces the following output:
wait is still running
wait is not set to cancelled!
Awaiting cancelled future produced a CancelledError.
A look a the documentation does not suggest a need to await the future in order to make sure the cancelled-flag is being set.
----------
components: asyncio
files: test.py
messages: 345029
nosy: Roland Netzsch, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Future.cancelled is not set to true immediately after calling Future.cancel
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48405/test.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37202>
_______________________________________
More information about the Python-bugs-list
mailing list