Table of Contents

Class SkipLastOperator

Namespace
RxSharp.Operators
Assembly
RxSharp.dll

Implements the SkipLast operator. Mirrors rxjs's skipLast.

public static class SkipLastOperator
Inheritance
System.Object
SkipLastOperator

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

source Observable<T>

The source observable to skip trailing values from.

count int

The number of trailing values to skip. If zero or negative, source is mirrored unchanged.

Returns

Observable<T>

An observable of the values from source with the last count held back.

Type Parameters

T

The 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.