thierryb
thierryb

Reputation: 3728

Difference between subscribeNext and bindNext

I am using RxSwift and wondering what is difference between subscribeNext and bindNext?

Thanks for your input.

Upvotes: 6

Views: 1847

Answers (1)

thierryb
thierryb

Reputation: 3728

bindNext(:) includes error handling. It calls subscribe(:onError:) and throws a fatal error onError (in DEBUG). subscribeNext(_:) only handles onNext and does not throw an error.

Thanks for Scott Gardner from http://as.ync.io/

Upvotes: 13

Related Questions