Amanjeet Singh
06/17/2019, 1:01 PMgildor
06/17/2019, 2:18 PMZach Klippenstein (he/him) [MOD]
06/18/2019, 2:41 AMflow { }
and channelFlow { }
, which create cold `Flow`s. For channels, there’s CoroutineScope.produce { }
(although channels are hot, so that’s a bit different than Observable.create
).flow
if you’re emitting from a single context, use channelFlow
if you need to emit from other coroutines, or from a regular callback.Amanjeet Singh
06/18/2019, 6:38 AM