Last active
March 21, 2022 00:27
-
-
Save KhomDrake/5e8bec8cff619ae9e22f09c4f17b88d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
suspend fun setupMovies(completion: Continuation<Any?>) { | |
val continuation = .. | |
when(continuation.label) { | |
.. | |
3 -> { | |
println("Terminou") | |
continuation.resume(Unit) | |
} | |
else -> throw IllegalStateException(...) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment