Lukasz Kalnik
01/25/2023, 3:52 PMrunTest
, can I somehow test that coroutine suspended and not continued?Lukasz Kalnik
01/25/2023, 3:54 PMsuspendCancellableCoroutine
getting a callback, which then doesn't trigger a continuation to resumeSam
01/25/2023, 3:56 PMrunTest {
val job = async { doSomething() }
runCurrent()
assertFalse(job.isCompleted)
job.cancel()
}
Lukasz Kalnik
01/25/2023, 4:02 PM