``` channel.consumeEach { if(it.sth()){ do...
# coroutines
r
Copy code
channel.consumeEach {
   if(it.sth()){
     doSth()
  } else {
     // stop consuming - break out of consume
  }
}
e
@rafal Not yet, but it is planned to be supported in the near future, when support for inline suspend function is finished in Kotlin compiler
👍 1