Change flatMapLatest example in Rx.playground to initially use flatMap
This commit is contained in:
parent
070139a4c4
commit
ef62979f62
|
|
@ -41,7 +41,7 @@ example("flatMap and flatMapLatest") {
|
|||
let player = Variable(👦🏻)
|
||||
|
||||
player.asObservable()
|
||||
.flatMapLatest { $0.score.asObservable() } // Change flatMap to flatMapLatest and observe change in printed output
|
||||
.flatMap { $0.score.asObservable() } // Change flatMap to flatMapLatest and observe change in printed output
|
||||
.subscribeNext { print($0) }
|
||||
.addDisposableTo(disposeBag)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue