diff options
| author | Adrian Herrmann <adrian.herrmann@qt.io> | 2023-09-29 22:45:16 +0200 |
|---|---|---|
| committer | Adrian Herrmann <adrian.herrmann@qt.io> | 2023-10-02 13:19:51 +0200 |
| commit | c4179d323d977699286f391bf1dd3d901770112a (patch) | |
| tree | fe963f145c1ef09260274fc0472204bc9c0b0f45 /sources/pyside6/PySide6/QtAsyncio/tasks.py | |
| parent | ef4ffcb01f00539db0aa851813bf5e78e0197c01 (diff) | |
QtAsyncio: Add _cancel_message to future + task
This field is assumed by asyncio.gather() to exist in task or future
classes despite being undocumented.
Pick-to: 6.6
Task-number: PYSIDE-769
Change-Id: Ieab6f216db95e40bd02625fb9cff69be0ebccd50
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/QtAsyncio/tasks.py')
| -rw-r--r-- | sources/pyside6/PySide6/QtAsyncio/tasks.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtAsyncio/tasks.py b/sources/pyside6/PySide6/QtAsyncio/tasks.py index ca33ed346..7bca955b0 100644 --- a/sources/pyside6/PySide6/QtAsyncio/tasks.py +++ b/sources/pyside6/PySide6/QtAsyncio/tasks.py @@ -134,6 +134,7 @@ class QAsyncioTask(futures.QAsyncioFuture): return False if (isinstance(self._handle, events.QAsyncioHandle)): self._handle._cancel_exception_msg = msg + self._cancel_message = msg self._handle.cancel() self._state = futures.QAsyncioFuture.FutureState.CANCELLED return True |
