voddan
07/27/2016, 7:41 PMsuspend fun yield(value: T, c: Continuation<Unit>) { }
Usage: yield(1)
, the second parameter is implicit. It is well documented here https://github.com/Kotlin/kotlin-coroutines/blob/master/kotlin-coroutines-informal.md#type-checking-coroutines