delay for counter in kotlin code example
Example 1: andoird kotlin delay
Handler().postDelayed({
//doSomethingHere()
}, 1000)
Example 2: android kotlin set timerout
import java.util.Timer
import kotlin.concurrent.schedule
Timer("SettingUp", false).schedule(500) {
doSomething()
}