Class IsEmptyOperator
Implements the IsEmpty operator. Mirrors rxjs's isEmpty.
public static class IsEmptyOperator
- Inheritance
-
System.ObjectIsEmptyOperator
Methods
IsEmpty<T>(Observable<T>)
Emits a single boolean: true and completes if source completes
without ever emitting a value, or false and completes as soon as the first value
arrives — without waiting for source itself to complete.
public static Observable<bool> IsEmpty<T>(this Observable<T> source)
Parameters
sourceObservable<T>The source observable to check for emptiness.
Returns
- Observable<bool>
An observable that emits a single boolean, then completes.
Type Parameters
TThe element type of the source observable.