Table of Contents

Class IsEmptyOperator

Namespace
RxSharp.Operators
Assembly
RxSharp.dll

Implements the IsEmpty operator. Mirrors rxjs's isEmpty.

public static class IsEmptyOperator
Inheritance
System.Object
IsEmptyOperator

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

source Observable<T>

The source observable to check for emptiness.

Returns

Observable<bool>

An observable that emits a single boolean, then completes.

Type Parameters

T

The element type of the source observable.