deviant
09/18/2017, 3:25 PMChannel
into Sequence
? is it possible? something like that
produce<Int>{
send(1)
send(2)
send(3)
}
.asSequence() // some suspendable helper?
.filter {it==1}
jmfayard
09/18/2017, 3:35 PMdeviant
09/18/2017, 3:37 PMfilter
, map
etc for the Channeldeviant
09/18/2017, 3:39 PMbuildSequence {
for (item in channel) {
yield(item)
}
}
but it doen't allow me to iterate on channel inside of builderelizarov
09/18/2017, 4:03 PMh0tk3y
09/18/2017, 4:09 PM