ursus
06/14/2021, 7:49 PMtrySend
vs trySendBlocking
in callbackFlow
. I presume it's about backpressure right? If so, to mimic rxjava Observable, I want trySendBlocking
right?louiscad
06/15/2021, 6:38 AMelizarov
06/16/2021, 7:44 AMtrySend
, to block in case of backpressue -> trySendBlocking
ursus
06/16/2021, 9:43 AMelizarov
06/16/2021, 9:44 AMbuffer(n)
ursus
06/16/2021, 9:47 AMlouiscad
06/16/2021, 9:54 AMconflate()
or properly configured buffer(…)
along with trySend(…)
is often a better solution (but it depends on use case and requirements).ursus
06/17/2021, 8:31 AMlouiscad
06/17/2021, 11:28 AM