Revert "Fix thread starvation caused by not yielding or using an inappropriate thread pool (#2955)"
This reverts commit 22d5c9d9f4.
This commit is contained in:
@@ -35,7 +35,7 @@ object Migrator {
|
||||
result = null
|
||||
}
|
||||
|
||||
suspend fun awaitAndRelease(): Boolean {
|
||||
return await().also { release() }
|
||||
fun awaitAndRelease(): Boolean = runBlocking {
|
||||
await().also { release() }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user