mingkangpan
11/29/2018, 11:08 AMlaunch {
val isYes = channel.receive
if(!isYes) {
coroutineContext.cancel()
return@launch
}
//process further logic
}Daniel Tam
11/29/2018, 11:28 AMlaunch block, simply return@launchDaniel Tam
11/29/2018, 11:28 AM