emitting an effect upon completion of a publisher #990
-
I have an Now i also want to react on the event that this processing is complete. In combine, i would simply handle the completion event I could of course refactor the implementation of my data processing to emit an enum of the value that i care about, and a special Did you experience such a requirement and if so, how did you solve it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@falcowinkler If you concatenate an effect to your long-running effect, it will emit when the long-running effect completes: return Effect.concatenate(
myLongRunningEffect,
Effect(value: MyAction.myLongRunningEffectCompleted)
) |
Beta Was this translation helpful? Give feedback.
@falcowinkler If you concatenate an effect to your long-running effect, it will emit when the long-running effect completes: