Skip to content

Instantly share code, notes, and snippets.

@recheej
Last active February 18, 2021 00:47
Show Gist options
  • Save recheej/e81e946b4222b91472a53ece31f3ff93 to your computer and use it in GitHub Desktop.
Save recheej/e81e946b4222b91472a53ece31f3ff93 to your computer and use it in GitHub Desktop.
suspend fun performNetworkequest(){
val response = getResponse('https://blah.com') //suspension point
storeResponseInDatabase(response) //suspension point
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment