kingsley
09/22/2017, 11:43 AMlaunch
? Yes, we can. You simply run it within a runBlocking
and await
it’s completion (or termination as the case may be)
However the UI
makes it difficult to unit test without bringing all the platform dependency with it.
I would abstract this part out instead, to make it easy to swap with a non-platform dependent coroutineContextdeviant
09/22/2017, 12:29 PMUnconfined
for tests. looks like it works now