https://kotlinlang.org logo
#coroutines
Title
# coroutines
c

cbruegg

03/28/2017, 4:01 PM
@ilya.gorbunov Are you sure that's true? Did you take a look at my post (https://discuss.kotlinlang.org/t/handling-android-lifecycle-events-with-coroutines/2440) in the forum?
onPause
may be invoked on the UI thread between
download().await()
and
performSomeWorkOnTheUI()
since the call to
performSomeWorkOnTheUI
is posted to a
Handler
. The
Handler
may process this message after
onPause
has happened.