How might I create a flow of a sealed class? I hav...
# coroutines
j
How might I create a flow of a sealed class? I have something like this:
Copy code
val events =
  flowOf(
      callbackFlow { }.map { SealedClass.Property1 },
      callbackFlow { }.map { SealedClass.Property2 },
      BroadcastChannel(1) .asFlow().map { SealedClass.Property3 }
).flattenMerge()
But, when I
offer
to the broadcast channel nothing is emitted from events. The callback flows however, work fine.
d
Does this have anything to do with sealed classes? I think not
j
Probably not, but I figured some context would be helpful 🙂 Any ideas why its not emitting @Dico?
d
No, Sadly