In an android service I have created thread(s) for doing some background task.
I have a situation where a thread needs to post certain task on main thread\'s message
With Kotlin, it is just like this inside any function:
runOnUiThread { // Do work.. }