Class SkipLastOperator
Implements the SkipLast operator. Mirrors rxjs's skipLast.
public static class SkipLastOperator
- Inheritance
-
System.ObjectSkipLastOperator
Methods
SkipLast<T>(Observable<T>, int)
Skips the last count values emitted by source: every value is held
in an internal buffer until enough later values have arrived to prove it is not among the trailing
count values, at which point it is forwarded.
public static Observable<T> SkipLast<T>(this Observable<T> source, int count)
Parameters
sourceObservable<T>The source observable to skip trailing values from.
countintThe number of trailing values to skip. If zero or negative,
sourceis mirrored unchanged.
Returns
- Observable<T>
An observable of the values from
sourcewith the lastcountheld back.
Type Parameters
TThe element type of the source observable.
Remarks
Every forwarded value is therefore delayed by count emissions. If source
emits fewer than count values before completing, nothing is ever forwarded. Unsubscribing
does not flush the buffered values — they are simply discarded, matching rxjs's own skipLast.