Skip to content

emitting an effect upon completion of a publisher #990

Answered by stephencelis
falcowinkler asked this question in Q&A

You must be logged in to vote

@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)
)

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by falcowinkler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants