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>
This commit is contained in:
Jarek Kobus
2023-03-09 18:02:18 +01:00
parent 4fc891563a
commit 209b591eac
2 changed files with 4 additions and 4 deletions

View File

@@ -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();
}));