Class ToArrayOperator
Implements the ToArray operator. Mirrors rxjs's toArray.
public static class ToArrayOperator
- Inheritance
-
System.ObjectToArrayOperator
Methods
ToArray<T>(Observable<T>)
Buffers every value emitted by source and, once it completes, emits them all as a
single list, then completes.
public static Observable<IReadOnlyList<T>> ToArray<T>(this Observable<T> source)
Parameters
sourceObservable<T>The source observable to buffer.
Returns
- Observable<IReadOnlyList<T>>
An observable that emits a single list of every value from
source, then completes.
Type Parameters
TThe element type of the source observable.
Remarks
If source errors, no list is emitted — the error is forwarded directly instead.