Step into Swift logo

What is the Take Operator in RxSwift?

Take Operator

RxSwift: Take Operator

Take(n)

  • Emits only the the first n elements and ignores everything after.
----7--9-----1--4---->

take(2)

----7--9------------->

< All Posts