Created
February 6, 2024 12:27
-
-
Save tdcolvin/6a8225e48f02eb0890ad78b574588b02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val job = scope.launch { | |
while(true) { | |
delay(500) | |
buttonColor = Color(Random.nextInt(0xFF), Random.nextInt(0xFF), Random.nextInt(0xFF), 0xFF) | |
} | |
} | |
scope.launch { | |
delay(2000) | |
job.cancel() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment