mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 15:06:56 +07:00
IJPL-326 remove getCoroutineScope
GitOrigin-RevId: 071d852d71a7b6a6e5a24088a9bd987fe487f407
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9e4a8d4ef6
commit
a920a363f7
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user