qt5base-lts/tests/auto/corelib/thread/qfuture
Andrei Golubev 3ca600bd2d Make QPromise::addResult() return boolean status of operation
Changed QPromise::addResult() to return bool value. True is returned
when result is added and false is returned when e.g. promise is in final
state (canceled or finished) or when addResult() is called twice with
the same index as argument (in which case new value is rejected)

Updated QFutureInterface::reportFinished() that accepts optional result
as argument to align with other result adding methods. This function
is "internal" only (as of now), so no documentation update is needed

Change-Id: I2d63069246e5e5c8cf04529c22bb296faaaae53d
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
2020-10-16 09:48:10 +02:00
..
.gitignore Move QFuture from QtConcurrent to QtCore 2012-09-28 23:50:10 +02:00
.prev_CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qfuture.pro Get rid of QT_STRICT_ITERATORS 2019-11-04 12:52:26 +00:00
tst_qfuture.cpp Make QPromise::addResult() return boolean status of operation 2020-10-16 09:48:10 +02:00