mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[threading] IJPL-178581: Set Main version of EDT dispatcher as Dispatchers.Main
GitOrigin-RevId: 7f5dcd2ec43df973b6bc9c455b51b0b6d1c80df1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f04299129d
commit
36882b19f0
+6
-1
@@ -11,6 +11,11 @@ internal class EdtCoroutineDispatcherFactory : MainDispatcherFactory {
|
||||
override val loadPriority: Int get() = 0
|
||||
|
||||
override fun createDispatcher(allFactories: List<MainDispatcherFactory>): MainCoroutineDispatcher {
|
||||
return EdtCoroutineDispatcher.Locking
|
||||
return if (System.getProperty("ide.install.ui.dispatcher.as.main.coroutine.dispatcher")?.toBooleanStrictOrNull() ?: true) {
|
||||
EdtCoroutineDispatcher.Main
|
||||
}
|
||||
else {
|
||||
EdtCoroutineDispatcher.Locking
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user