Skip to content

Instantly share code, notes, and snippets.

@chaxiu
Created October 18, 2020 12:04
Show Gist options
  • Save chaxiu/68a69ee097dd53b07c6fda80d2737ab7 to your computer and use it in GitHub Desktop.
Save chaxiu/68a69ee097dd53b07c6fda80d2737ab7 to your computer and use it in GitHub Desktop.
// suspend modifier
// ↓
suspend fun noSuspendFriendList(user: String): String{
// body is just like normal function
return "Tom, Jack"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment