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

This commit is contained in:
Luca Auer
2026-02-15 16:47:31 +01:00
committed by GitHub
parent 5be5a4e819
commit 22d5c9d9f4
16 changed files with 162 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() }
}
}