sjj
05/24/2021, 11:30 PMshareIn
operator to ensure the flow is only actually collected once, and subsequently cached. Based on what I've read, due to the fact that collect
on a SharedFlow
never actually returns, the recommended pattern is to use some kind of sentinel value to denote the completion of data and combine that with the takeWhile
operator. Just wanted to check this is indeed the recommended solution.dshevliakov
05/25/2021, 4:30 PMsjj
05/26/2021, 12:03 AMDALDEI
10/29/2021, 2:16 AM