Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between subscribeNext and bindNext

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

Thanks for your input.

like image 529
thierryb Avatar asked Apr 05 '16 14:04

thierryb


1 Answers

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/

like image 149
thierryb Avatar answered Nov 05 '22 13:11

thierryb