RxSwift: SkipUntil Operator
skipUntil(trigger)
- Keep skipping until some
trigger
observable emits an element. - Emit everything after the
trigger
observable has emitted an element.
----7--9-----1--4---->
----------0----0----->
skipUntil(trigger)
-------------1--4---->
let subject = PublishSubject<String>()
let trigger = PublishSubject<String>()
subject.skipUntil(tigger).subscribe(onNext: ....)
< All Posts