Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun startTimer() {
- val tickerMode = ticker(delayMillis = 600, initialDelayMillis = 0)
- launch {
- var count = 5
- for (event in tickerMode) {
- count--
- showCountdown.value = count
- if (count == 0) tickerMode.cancel()
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement