Skip to content

Instantly share code, notes, and snippets.

View imamulOthoba's full-sized avatar

imamulOthoba

  • Joined Sep 27, 2025
View GitHub Profile
@imamulOthoba
imamulOthoba / Job.kt
Created October 14, 2025 11:37
View Model Job Sample
// first we create the flow or any type of function or variable
val createDialogTimer: Flow<Long> = callbackFlow {
val time = object : CountDownTimer(120000L, 1000) {
override fun onTick(millisUntilFinished: Long) {
trySend((millisUntilFinished / 1000))
}
override fun onFinish() {
trySend(0)
}