Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
458 B
3
Indexable
Never
		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()
Leave a Comment