zak.taccardi
03/27/2021, 6:48 PMcallbackFlow
vs channelFlow
. It seems the latter respects operator fusion, but the prior does not?Dominaezzz
03/27/2021, 7:08 PMawaitClose
.Dominaezzz
03/27/2021, 7:09 PMcallbackFlow
if you're dealing with callbacks. Use channelFlow
otherwise.zak.taccardi
03/27/2021, 7:09 PMDominaezzz
03/27/2021, 7:10 PMzak.taccardi
03/27/2021, 7:10 PMchannelFlow
because my only use case for it is to register/unregister callbacksDominaezzz
03/27/2021, 7:10 PMemit
.zak.taccardi
03/27/2021, 7:11 PMursus
03/28/2021, 2:12 PMflow { .. }
? i thought that builder was main selling point of flowstreetsofboston
03/28/2021, 3:39 PMflow
call ends/returns, the Flow
that it returns ends/completes.
The callback/channelFlow builders provide a suspending awaitClose method allowing this lambda to suspend indefinitely.