mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
[threading] IJPL-190260: Remove blockingContext #3
GitOrigin-RevId: 6ee85633990898bf184ab769763dcc71f4cac878
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d7adc875de
commit
aa85748ea5
@@ -196,11 +196,11 @@ private data class LarvaData(
|
||||
val dfaVariableValues: List<DfaVariableValue>,
|
||||
)
|
||||
|
||||
private suspend fun <T> syncReadAction(action: () -> T): T = blockingContext {
|
||||
private suspend fun <T> syncReadAction(action: () -> T): T =
|
||||
try {
|
||||
ReadAction.nonBlocking(action).executeSynchronously()
|
||||
}
|
||||
catch (e: ExecutionException) {
|
||||
throw e.cause ?: e
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user