Details
-
Bug
-
Resolution: Cannot Reproduce
-
P3: Somewhat important
-
None
-
5.3.2
-
None
-
Windows 7 x64, MSVC2013
Description
When canceling a QFuture created with QtConcurrent::run() using a QFutureWatcher->cancel(), the QFutureWatcher is not marked as isCanceled(). I am aware that QFutures created using QtConcurrent::run() can not be canceled, but the documentation of isCanceled() also states "Returns true if the asynchronous computation has been canceled with the cancel() function; otherwise returns false. Be aware that the computation may still be running even though this function returns true." essentially meaning "the internal cancel flag has been set some time before calling this function"...
I'd expect isCanceled() to return true in such a case. Otherwise the documentation should document this otherwise.
Attachments
Issue Links
- relates to
-
QTBUG-61928 Make a decision for asynchronous APIs
-
- Closed
-