What is a coroutine?
https://en.wikipedia.org/wiki/Coroutine
suspend fun fetchRecord() suspend fun processRecord(record: Record) suspend fun doIt(){ val record = fetchRecord() processRecord(record) }
interface Continuation<in T> { val context: CoroutineContext fun <T> resume(value: T): Unit fun <T> resumeWithException(exception: Throwable): Unit }
By Krzysztof Folwarczny