It seems `SharingStarted.WhileSubscribed()` isn't ...
# coroutines
t
It seems
SharingStarted.WhileSubscribed()
isn't working on 1.6.0-native-mt on iOS
Actually it looks like anything other than Eagerly fails. It looks like
Copy code
/*
     * 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
Eagerly is a special case
p
@Vsevolod Tolstopyatov [JB] Can you help out here?
v
We probably can fix it in 1.6.1-native-mt. The easiest way for us to get notified about the problem is to file an issue 🙂
p