Refactor application class

This commit is contained in:
Koitharu
2023-08-22 16:17:18 +03:00
parent 05dbd11fc1
commit ca1380e2b1
24 changed files with 64 additions and 49 deletions

View File

@@ -0,0 +1,9 @@
package org.koitharu.kotatsu
import android.app.Instrumentation
import kotlin.coroutines.resume
import kotlin.coroutines.suspendCoroutine
suspend fun Instrumentation.awaitForIdle() = suspendCoroutine<Unit> { cont ->
waitForIdle { cont.resume(Unit) }
}