RxSwift-插入发送合并压缩-startWith、merge、zipignoreElement

startWith
在订阅的时候插入发送事件,后加入的先发送。完成事件发送时不会插入。
1 | let ob = PublishSubject<String>() |
merge
合并操作,将多个 Observable
合并成一个
1 | let ob1 = PublishSubject<String>() |
zip
将 n 个Observable
压缩成一个发送事件,必须每个都参与的发送完才会发送一次事件。参与的成对发送完
1 | let ob1 = PublishSubject<String>() |
- Post title:RxSwift-插入发送合并压缩-startWith、merge、zipignoreElement
- Post author:xxxixxxx
- Create time:2020-11-18 00:00:00
- Post link:https://xxxixxx.github.io/2020/11/18/200-RxSwift-插入发送合并压缩-startWith、merge、zip/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.
Comments