The filtering/suppressing operators

Think of a situation when you want to receive some emissions from the producer but want to discard the rest. There may be some logic to determine the qualifying emissions, or you may even wish to discard in bulk. The filtering/suppressing operators are there to help you in these situations.

Here is a brief list of filtering/suppressing operators:

  • debounce
  • distinct and distinctUntilChanged
  • elementAt
  • Filter
  • first and last
  • ignoreElements
  • skip, skipLast, skipUntil, and skipWhile
  • take, takeLast, takeUntil, and takeWhile

Let's now take a closer look at all of them.

Get Reactive Programming in Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.