1 package android.os 2 3 import kotlinx.coroutines.GlobalScope 4 import kotlinx.coroutines.launch 5 6 class Handler(val looper: Looper) { postnull7 fun post(r: Runnable): Boolean { 8 GlobalScope.launch { r.run() } 9 return true 10 } 11 } 12 13 class Looper { 14 companion object { 15 @JvmStatic getMainLoopernull16 fun getMainLooper() = Looper() 17 } 18 } 19