Minor. Throw exceptions in test coroutine builders

This commit is contained in:
Ilmir Usmanov
2021-02-02 16:47:32 +01:00
parent 52e22796e1
commit a30a961cf5
8 changed files with 24 additions and 8 deletions
+3 -1
View File
@@ -994,7 +994,9 @@ suspend fun test() {
}
fun builder(c: suspend () -> Unit) {
c.startCoroutine(Continuation(EmptyCoroutineContext) {})
c.startCoroutine(Continuation(EmptyCoroutineContext) {
it.getOrThrow()
})
}
fun box(): String {