Skip to content

Instantly share code, notes, and snippets.

@Arunshaik2001
Created December 25, 2022 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arunshaik2001/8ecf7cf415fc0d99cea7e9ea043f1dae to your computer and use it in GitHub Desktop.
Save Arunshaik2001/8ecf7cf415fc0d99cea7e9ea043f1dae to your computer and use it in GitHub Desktop.
fun sayHello(name: String) {
viewModelScope.launch(context = Dispatchers.IO) {
try {
updateResult(sendMessage(name,channel) ?: "")
} catch (e: Exception) {
updateResult(e.message?:"")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment