Lalit Sagar11/02/2020, 8:14 AM
. It mentions that this function throws a
if the coroutine is cancelled or completed while suspended. In which case the coroutine is completed while suspended?
elizarov11/02/2020, 10:34 AM
. Take a look at this test that tests for this schenario: https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/common/test/CancellableContinuationTest.kt#L120-L141
Lalit Sagar11/02/2020, 4:32 PM