Advanced
Kotlin
Q100 / 100
What is the Kotlin coroutine's low-level Continuation API?
Correct! Well done.
Incorrect.
The correct answer is B) The interface underlying all coroutine suspension: Continuation<T> has resumeWith(Result<T>) which is called by the runtime to resume a suspended coroutine
B
Correct Answer
The interface underlying all coroutine suspension: Continuation<T> has resumeWith(Result<T>) which is called by the runtime to resume a suspended coroutine
Explanation
Every suspend function receives an implicit Continuation parameter. When suspended, the current state is captured. When resumeWith is called, execution resumes from that state.
Progress
100/100