Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

rxswift combine two observables

 Observable.combineLatest(
            sourceObservableA, sourceObservableB,
            resultSelector: { value1, value2 in
                print("(value1) (value2)")
        }).observeOn(MainScheduler.instance)
            .subscribe()
            .disposed(by: disposeBag)
 
PREVIOUS NEXT
Tagged: #rxswift #combine #observables
ADD COMMENT
Topic
Name
6+8 =