Created
September 23, 2024 15:57
-
-
Save AndreVero/e60e30d588e8ea6c66eb4b9ad8cb830b 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
private var job: Job? = null | |
fun setUrl(url: String) { | |
job?.cancel() | |
job = scope.launch { | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment