so I have this coroutine ``` launch(CommonPool) {...
# coroutines
l
so I have this coroutine
Copy code
launch(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