tseisel
06/17/2019, 2:07 PMflow<String> {
emit("Foo")
}
and
channelFlow<String> {
send("Foo")
}
Apart from the receiver, that is FlowCollector
in the first and ProducerScope
in the second.jw
06/17/2019, 2:09 PMchannelFlow
allows you to send
from any thread/context. A flow
can only emit on the same context.streetsofboston
06/17/2019, 2:19 PMflow
can only emit on the same scope (coroutine-scope).