Skip to content

Instantly share code, notes, and snippets.

@chaxiu
Created October 18, 2020 12:04
Show Gist options
  • Save chaxiu/ba280eac546a58d94d294318bf9c61f3 to your computer and use it in GitHub Desktop.
Save chaxiu/ba280eac546a58d94d294318bf9c61f3 to your computer and use it in GitHub Desktop.
suspend fun getUserInfo(): String {
withContext(Dispatchers.IO) {
delay(1000L)
}
return "BoyCoder"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment