Reapply "Fix thread starvation caused by not yielding or using an inappropriate thread pool (#2955)"

This reverts commit 1d7c838ae6.
This commit is contained in:
AntsyLich
2026-02-26 18:42:17 +06:00
parent f9f938f5af
commit 0024278f4b
16 changed files with 163 additions and 83 deletions
@@ -35,7 +35,7 @@ object Migrator {
result = null
}
fun awaitAndRelease(): Boolean = runBlocking {
await().also { release() }
suspend fun awaitAndRelease(): Boolean {
return await().also { release() }
}
}