QFutureSynchonizer: suggest future.waitForFinished() instead of QFutureSynchronizer(future);

Task-number: QTBUG-114767
Change-Id: I6c626438d8d8deb2498ec7cb47f57e6fcef19665
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
Marc Mutz 2023-06-21 11:47:33 +02:00
parent 38cd3cb126
commit 1754238656

View File

@ -18,7 +18,7 @@ class QFutureSynchronizer
public:
Q_NODISCARD_CTOR QFutureSynchronizer() : m_cancelOnWait(false) { }
Q_NODISCARD_CTOR
Q_NODISCARD_CTOR_X("Use future.waitForFinished() instead.")
explicit QFutureSynchronizer(QFuture<T> future)
: m_cancelOnWait(false)
{ addFuture(std::move(future)); }