Untitled
Anonymous
plain_text
03/06/2024 10:57 AM
612 B
29
Indexable
timer = object : CountDownTimer(
remainingTimeInMills,
1000
){
override fun onTick(remainingTime : Long) {
viewModelScope.launch(Dispatchers.IO)
{
I do database related stuff here
}
}
override fun onFinish() {
viewModelScope.launch(Dispatchers.IO)
{
I do database related stuff here
}
}
}
timer.start()Editor is loading...
Leave a Comment