diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2023-03-09 18:02:18 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2023-03-10 07:08:39 +0000 |
commit | 209b591eaced20447fb5c639b465c798b288e3e9 (patch) | |
tree | 3e1d6a7262bdba3c35a525f4c6d9c234c4ff57bd /src/plugins/texteditor/codeassist | |
parent | 4fc891563a053d4e225cc28144c6897118fe978e (diff) |
TextEditor: Use QtConcurrent invocation for async run
Change-Id: I4b40e2e3591a9a74570e318e216c4ad74c01ca6b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/texteditor/codeassist')
-rw-r--r-- | src/plugins/texteditor/codeassist/asyncprocessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/codeassist/asyncprocessor.cpp b/src/plugins/texteditor/codeassist/asyncprocessor.cpp index 90f993a39c..bd074f04c0 100644 --- a/src/plugins/texteditor/codeassist/asyncprocessor.cpp +++ b/src/plugins/texteditor/codeassist/asyncprocessor.cpp @@ -6,7 +6,7 @@ #include "assistinterface.h" #include "iassistproposal.h" -#include <utils/runextensions.h> +#include <utils/asynctask.h> namespace TextEditor { @@ -21,7 +21,7 @@ IAssistProposal *AsyncProcessor::perform() { IAssistProposal *result = immediateProposal(); interface()->prepareForAsyncUse(); - m_watcher.setFuture(Utils::runAsync([this] { + m_watcher.setFuture(Utils::asyncRun([this] { interface()->recreateTextDocument(); return performAsync(); })); |