[threading] IJPL-190260: Remove blockingContext #3

GitOrigin-RevId: 6ee85633990898bf184ab769763dcc71f4cac878
This commit is contained in:
Konstantin Nisht
2025-06-03 16:35:49 +02:00
committed by intellij-monorepo-bot
parent d7adc875de
commit aa85748ea5
7 changed files with 60 additions and 89 deletions

View File

@@ -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
}
}