Rohan Maity
12/28/2018, 3:45 AMgildor
12/28/2018, 5:37 AMRohan Maity
12/28/2018, 5:41 AMgildor
12/28/2018, 5:48 AMgildor
12/28/2018, 5:48 AMgildor
12/28/2018, 5:51 AMgildor
12/28/2018, 5:53 AMRohan Maity
12/28/2018, 6:04 AMgildor
12/28/2018, 6:11 AMMake the thread in idle stateIt’s wrong
gildor
12/28/2018, 6:12 AMgildor
12/28/2018, 6:13 AMRohan Maity
12/28/2018, 6:15 AMgildor
12/28/2018, 6:19 AMdelay
does nothing, so delay operation started and event queue just spin it until delay finished. If you intereseted how it implemented, check Android Looper implementation or runBlocking
event queue in kotlinx.coroutines, it’s universal approach, used a lot for async operations on single-threaded environment, for example in JSRohan Maity
12/28/2018, 9:22 AM