Overview
Emits only the firstcount values emitted by the source Observable.
take returns an Observable that emits only the first count values emitted by the source Observable. If the source emits fewer than count values then all of its values are emitted. After that, it completes, regardless if the source completes.Type Signature
Parameters
The maximum number of
next values to emit.If count <= 0, returns an empty Observable that completes immediately.Returns
MonoTypeOperatorFunction<T> - A function that returns an Observable that emits only the first count values emitted by the source Observable.
