Skip to content

)}

Qbservable.Latest(IQbservable) method

Defined in

Type: Qbservable Namespace: System.Reactive.Linq Assembly: System.Reactive.dll

Applies to

netstandard2.0

public static IQueryable<TSource> Latest<TSource>(this IQbservable<TSource> source)

Summary: Returns an enumerable sequence whose enumeration returns the latest observed element in the source observable sequence. Enumerators on the resulting sequence will never produce the same element repeatedly, and will block until the next element becomes available.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source observable sequence.

Returns: IQueryable -- The enumerable sequence that returns the last sampled element upon each iteration and subsequently blocks until the next element in the observable source sequence becomes available.

Remarks

This operator requires the source's IQbservableProvider object (see Provider) to implement IQueryProvider.