📜  rxswift 结合两个 observables - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:02.378000             🧑  作者: Mango

代码示例1
Observable.combineLatest(
            sourceObservableA, sourceObservableB,
            resultSelector: { value1, value2 in
                print("\(value1) \(value2)")
        }).observeOn(MainScheduler.instance)
            .subscribe()
            .disposed(by: disposeBag)