summaryrefslogtreecommitdiffstats
path: root/src/concurrent/qtconcurrenttask.qdoc
diff options
context:
space:
mode:
authorVitaly Fanaskov <vitaly.fanaskov@qt.io>2020-03-31 11:22:02 +0200
committerVitaly Fanaskov <vitaly.fanaskov@qt.io>2020-04-14 17:44:13 +0200
commit678b9f78a5af4513ed4e988de90148584a2ae90d (patch)
tree090b7970c739396d20a758bd87280b13ee9159cf /src/concurrent/qtconcurrenttask.qdoc
parentc028cbccc248581ca37389fa50e02a988d006348 (diff)
QTaskBuilder::spawn: add an overload that doesn't return a future object
Fixes: QTBUG-83175 Change-Id: Idf85e47a2732742884272200d5c753805eaa640b Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/concurrent/qtconcurrenttask.qdoc')
-rw-r--r--src/concurrent/qtconcurrenttask.qdoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/concurrent/qtconcurrenttask.qdoc b/src/concurrent/qtconcurrenttask.qdoc
index e25e485bd1..9000b424fe 100644
--- a/src/concurrent/qtconcurrenttask.qdoc
+++ b/src/concurrent/qtconcurrenttask.qdoc
@@ -143,6 +143,11 @@
You can set the priority for a task:
\snippet code/src_concurrent_qtconcurrenttask.cpp 10
+
+ If you don't need a future object, you can call
+ QtConcurrent::QTaskBuilder::spawn(QtConcurrent::FutureResult::Ignore):
+
+ \snippet code/src_concurrent_qtconcurrenttask.cpp 11
*/
/*!