diff options
| author | Adrian Herrmann <adrian.herrmann@qt.io> | 2024-04-19 23:23:48 +0200 |
|---|---|---|
| committer | Adrian Herrmann <adrian.herrmann@qt.io> | 2024-04-22 15:13:28 +0200 |
| commit | 9de4dee2f697dc88812dfad04ce4054cebf6be61 (patch) | |
| tree | a34bd93dc52ea6f3230724f085d5160a5efe2e80 /examples/qml/tutorials | |
| parent | b27e1e5fe85ad7697ebbd571d1097ff656503803 (diff) | |
QtAsyncio: Fix tasks with loop not cancelling
If a task was cancelled, then a new future created from this task should
be cancelled as well. Otherwise, in some scenarios like a loop inside
the task and with bad timing, if the new future is not cancelled, the
task would continue running in this loop despite having been cancelled.
This bad timing can occur especially if the first future finishes very
quickly.
Pick-to: 6.7
Fixes: PYSIDE-2644
Task-number: PYSIDE-769
Change-Id: Icfff6e4ad5da565f50e3d89fbf85d1fecbf93650
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/qml/tutorials')
0 files changed, 0 insertions, 0 deletions
