leosan
11/16/2017, 4:29 PMlaunch(CommonPool) {
withLoading(view.show,view.hide) // <<-
val result = ApiClient.getSomething().awaitResult()
doSomethingWithResult(result)
}
I'd like to compose this withLoading() method in a way that it executes the view.show() at the start of the parentCouroutine and the view.hide() only after the api call with the awaitResult() finishes, but I'm struggling to undestand/do this 😞 any help is very welcome