RxSwift

hankyulee·2022년 9월 22일
0

인터뷰

목록 보기
6/12

bind와 subscribe의 차이점은 error를 컨트롤 할 수 있냐 없냐 입니다.
bind의 경우 error가 발생했을때 처리하는 구문이 없이 에러가 발생하고 subscribe를 사용할 경우 onError인자를 통해 에러가 발생했을 때 예외처리를 할 수 있습니다.
출처: https://macgongmon.club/12

single

A Single is something like an Observable, but instead of emitting a series of values — anywhere from none at all to an infinite number — it always either emits one value or an error notification.
https://reactivex.io/documentation/single.html

  • provider.rx.request에 의해서 Single

asObservable

  • asobservable => "다른 곳에서 observable로서 사용하겠다."

0개의 댓글