Skip to content

Send action back into the system when effect is canceled #2670

Answered by mbrandonw
vykut asked this question in Q&A
Discussion options

You must be logged in to vote

You can use .concatenate to send an action when an effect completes or is cancelled:

return .concatenate(
  .run { send in 
    
  }
  .cancellable(id: ),

  .send(.searchFinished)
)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mbrandonw
Comment options

Answer selected by vykut
@vykut
Comment options

@mbrandonw
Comment options

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