From 3262f983008210e894769ba9525ca1ae9b29c741 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Tue, 15 Oct 2024 06:55:04 +0200 Subject: [PATCH] Utils: Add takeResult method to AsyncTask Change-Id: I4d211a3860eb9779560f5d4ef285daab095b72ae Reviewed-by: Jarek Kobus --- src/libs/utils/async.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/utils/async.h b/src/libs/utils/async.h index c3caec5d3ad..76e4f01aa40 100644 --- a/src/libs/utils/async.h +++ b/src/libs/utils/async.h @@ -171,6 +171,7 @@ public: QFuture future() const { return m_watcher.future(); } ResultType result() const { return m_watcher.result(); } + ResultType takeResult() const { return m_watcher.future().takeResult(); } ResultType resultAt(int index) const { return m_watcher.resultAt(index); } QList results() const { return future().results(); } bool isResultAvailable() const { return future().resultCount(); }