Search code examples
iosrx-swiftreactivex

Difference between subscribeNext and bindNext


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

Thanks for your input.


Solution

  • 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/