ghedeon
01/21/2019, 11:45 PM@Test
fun test() {
runBlocking {
val channel = produce<Int> { channel.send(42) }
channel.consumeEach { assertEquals(42, it) } // <--- break point is on this lambda
}
}
P.S. I'm using Dispatchers.setMain()
on androidstreetsofboston
01/22/2019, 12:02 AMelizarov
01/22/2019, 12:58 AMghedeon
01/22/2019, 9:00 AM