Skip to content
Discussion options

You must be logged in to vote

@stephencelis's answer in that post should also help you:

return .publisher {
  executeAPublisherThatCanFailAndReturnsVoid()
    .receive(on: mainQueue)
    .map { .handleSuccessEffect }
    .catch { _ in .handleErrorEffect }
}

Replies: 2 comments 6 replies

Comment options

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

@WedgeSparda
Comment options

@tgrapperon
Comment options

Comment options

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

@mbrandonw
Comment options

@WedgeSparda
Comment options

Answer selected by WedgeSparda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants