summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonlanguageclient.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2023-03-09 17:11:29 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2023-03-10 07:20:18 +0000
commit3fae8fdc36bf9d1a489e70618808632922dd47a4 (patch)
tree03bce8447f053f56fef2b1e04782ab72b7dff68e /src/plugins/python/pythonlanguageclient.cpp
parent209b591eaced20447fb5c639b465c798b288e3e9 (diff)
downloadqt-creator-3fae8fdc36bf9d1a489e70618808632922dd47a4.tar.gz
Python: Use QtConcurrent invocation for async run
Change-Id: I26254d5c78c3b6ea06ed9baec8e52b988a6e9608 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/python/pythonlanguageclient.cpp')
-rw-r--r--src/plugins/python/pythonlanguageclient.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp
index 74edb153e1..088cd51644 100644
--- a/src/plugins/python/pythonlanguageclient.cpp
+++ b/src/plugins/python/pythonlanguageclient.cpp
@@ -29,9 +29,9 @@
#include <texteditor/textdocument.h>
#include <texteditor/texteditor.h>
+#include <utils/asynctask.h>
#include <utils/infobar.h>
#include <utils/qtcprocess.h>
-#include <utils/runextensions.h>
#include <utils/variablechooser.h>
#include <QCheckBox>
@@ -341,7 +341,7 @@ void PyLSConfigureAssistant::openDocumentWithPython(const FilePath &python,
instance()->handlePyLSState(python, watcher->result(), document);
watcher->deleteLater();
});
- watcher->setFuture(Utils::runAsync(&checkPythonLanguageServer, python));
+ watcher->setFuture(Utils::asyncRun(&checkPythonLanguageServer, python));
}
void PyLSConfigureAssistant::handlePyLSState(const FilePath &python,