Trevor Stone
01/11/2022, 5:26 PMSharingStarted.WhileSubscribed()
isn't working on 1.6.0-native-mt on iOSTrevor Stone
01/11/2022, 6:08 PM/*
* Conditional start: in the case when sharing and subscribing happens in the same dispatcher, we want to
* have the following invariants preserved:
* * Delayed sharing strategies have a chance to immediately observe consecutive subscriptions.
* E.g. in the cases like `flow.shareIn(...); flow.take(1)` we want sharing strategy to see the initial subscription
* * Eager sharing does not start immediately, so the subscribers have actual chance to subscribe _prior_ to sharing.
*/
val start = if (started == SharingStarted.Eagerly) CoroutineStart.DEFAULT else CoroutineStart.UNDISPATCHED
Trevor Stone
01/11/2022, 6:08 PMTrevor Stone
01/11/2022, 6:24 PMPaul Woitaschek
01/12/2022, 5:15 AMVsevolod Tolstopyatov [JB]
01/12/2022, 9:12 AMPaul Woitaschek
01/12/2022, 9:44 AM