koufa
12/09/2017, 10:16 PMactor
construct. Now I am calling the suspend
fun loadProducts()
from a runBlocking
block directly. The question remains how I could make the runBlocking
block to wait for the consumeEach
in loadProducts()
to finish, controlling somehow the mock channel
I return from the mocked loadProducts()
in my test. I hope I did explained it well. Thank you in advance for your interest.dave08
12/10/2017, 5:53 AMkoufa
12/10/2017, 3:53 PMproducer
coroutine so I can cancel/close the channel.dave08
12/10/2017, 3:58 PMkoufa
12/10/2017, 4:01 PM