c306.net
Goodbye handler, hello lifecycle coroutines
I just replaced this: a_view?.handler?.postDelayed(Runnable { doSomething() }, 500) with this: viewLifecycleOwner.lifecycleScope.launchWhenResumed { delay(500) doSomething() } It makes me very happ…