Skip to content

Instantly share code, notes, and snippets.

@recheej
Last active February 18, 2021 00:46
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 recheej/17b3d7b20628be78d2237ccfad7a69c7 to your computer and use it in GitHub Desktop.
Save recheej/17b3d7b20628be78d2237ccfad7a69c7 to your computer and use it in GitHub Desktop.
suspend fun foo() {
// let's assume called on main thread
delay(1000) // resume in 1 second
// we resumed after 1 second. which thread? that'll be answered in a future blog
println("foo completed")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment