IJPL-326 remove getCoroutineScope

GitOrigin-RevId: 071d852d71a7b6a6e5a24088a9bd987fe487f407
This commit is contained in:
Vladimir Krivosheev
2024-01-23 07:57:46 +01:00
committed by intellij-monorepo-bot
parent 9e4a8d4ef6
commit a920a363f7
86 changed files with 320 additions and 308 deletions

View File

@@ -1,10 +1,11 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.spellchecker.grazie.async
import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer
import com.intellij.openapi.application.Application
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.EDT
import com.intellij.openapi.components.ComponentManagerEx
import com.intellij.openapi.progress.runBlockingMaybeCancellable
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ProjectManager
@@ -36,8 +37,8 @@ internal object AsyncUtils {
return
}
@Suppress("DEPRECATION") val toRun: () -> Unit = {
project.coroutineScope.launch {
val toRun: () -> Unit = {
(project as ComponentManagerEx).getCoroutineScope().launch {
body()
withContext(Dispatchers.EDT) {