Skip to content

Dealing with errors in 5.0.0 #183

Locked Answered by sbertix
mehroozkhan asked this question in Q&A
Discussion options

You must be logged in to vote

I'm still gonna add a reply for future reference, in case anybody else wonders.

// Make sure this is retained!
var bin: Set<AnyCancellable> = []

Endpoint.user(secret.identifier)
            .unlock(with: secret)
            .session(.instagram)
            .sink { 
               switch $0 {
               case .failure(let error): break
               default: break
               }
            } receiveValue: { 
               print("output", $0)
            }
            .store(in: &bin)

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@sbertix
Comment options

Comment options

You must be logged in to vote
4 replies
@mehroozkhan

This comment was marked as off-topic.

@sbertix

This comment was marked as off-topic.

@mehroozkhan

This comment was marked as off-topic.

@sbertix

This comment was marked as off-topic.

Answer selected by sbertix
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