There may be a requirement where you would like to skip some emissions at the beginning or skip emissions until a particular condition is met. You may even have to wait for another producer before taking emissions and skip all remaining ones.
These operators are designed keeping the exact scenario in mind. They help you skip emissions in various ways.
RxKotlin provides us with many variations and overloads of the skip operator; we will discuss the most important ones among them:
- skip
- skipLast
- skipWhile
- skipUntil
We will take a look at all of the preceding listed operators one by one.
Let's start with skip:
fun main(args: Array<String>) { val observable1 = Observable.range(1,20) ...