6

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

Thanks for your input.

thierryb
  • 3,660
  • 4
  • 42
  • 58

1 Answers1

13

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/

thierryb
  • 3,660
  • 4
  • 42
  • 58