I just replaced this:
a_view?.handler?.postDelayed(Runnable {
doSomething()
}, 500)
with this:
viewLifecycleOwner.lifecycleScope.launchWhenResumed {
delay(500)
doSomething()
}
It makes me very happy*!
I just replaced this:
a_view?.handler?.postDelayed(Runnable {
doSomething()
}, 500)
with this:
viewLifecycleOwner.lifecycleScope.launchWhenResumed {
delay(500)
doSomething()
}
It makes me very happy*!