mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
TextMate - do not use blockingDispatcher, it should not be used here
GitOrigin-RevId: 2cf2905e8279ea478c81f6abd59aca850b37eb0a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
966268d9fe
commit
89b5fc43ec
@@ -6,9 +6,11 @@ import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.openapi.application.EDT
|
||||
import com.intellij.openapi.progress.util.ProgressIndicatorUtils
|
||||
import com.intellij.openapi.util.IntellijInternalApi
|
||||
import com.intellij.util.io.blockingDispatcher
|
||||
import kotlinx.coroutines.*
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.DelicateCoroutinesApi
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.future.asCompletableFuture
|
||||
import kotlinx.coroutines.launch
|
||||
import java.util.function.Consumer
|
||||
|
||||
@OptIn(DelicateCoroutinesApi::class)
|
||||
@@ -29,7 +31,7 @@ internal fun registerBundlesInParallel(scope: CoroutineScope,
|
||||
}
|
||||
}
|
||||
|
||||
val initializationJob = scope.launch(blockingDispatcher) {
|
||||
val initializationJob = scope.launch(Dispatchers.IO) {
|
||||
bundlesToLoad.map { bundleToLoad ->
|
||||
launch {
|
||||
runCatching {
|
||||
|
||||
Reference in New Issue
Block a user