I’m trying to prove out converting from a `Flow` t...
# coroutines
r
I’m trying to prove out converting from a
Flow
to an Rx construct. Unfortunately, this never seems to complete.
z
your
.collect
on the channel will not complete until the channel is closed
so the job stays active
r
Gotcha. So, I guess the question is, how do I tell the test not to end without processing all the signals?
z
try
runBlockingTest
and don’t
.join
maybe?
and launch in the same
CoroutineScope
errr
CoroutineContext
, not
Dispatchers.Default
r
runBlockingTest
unfortunately causes a crash.
Copy code
This job has not completed yet
d
You could save a reference to the job and cancel it at the end of the test