Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardKotlinthe Continuation interfaceSingle-choice MCQ

`suspendCoroutine { cont -> ... }` hands you a `Continuation`. What is the type/identity of the `cont` you receive, and what is the effect of calling `cont.resume(x)` twice?

suspend fun await(): Int = suspendCoroutine { cont -> register { value -> cont.resume(value) } }