Bump to 1.4-M3
This commit is contained in:
1 parent
71ec5b7585
commit
f5150557d6
9 files changed
+44
-17
No files matched your search
+3
-1
@@ -28,7 +28,9 @@ import kotlin.coroutines.startCoroutine
|
||||
fun testBlocking(block : suspend () -> Unit) {
|
||||
val continuation = Continuation<Unit>(EmptyCoroutineContext) {
|
||||
//Do nothing
|
||||
println("Done")
|
||||
if (it.isFailure) {
|
||||
throw it.exceptionOrNull()!!
|
||||
}
|
||||
}
|
||||
block.startCoroutine(continuation)
|
||||
}
|
||||
Reference in new issue
Block a user