Table of Contents

Class IsEmpty

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents an operator that determines whether the observable sequence is empty.

Marble diagram

If the source sequence completes before returning any elements, the IsEmpty operator will emit a single value true before terminating successfully. If the source sequence emits any element, IsEmpty will immediately emit a single value false, terminate successfully, and cancel the subscription to the source sequence.

[Combinator]
public class IsEmpty
Inheritance
IsEmpty
Inherited Members

Methods

Process<TSource>(IObservable<TSource>)

Determines whether the observable sequence is empty.

public IObservable<bool> Process<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The source sequence to check.

Returns

IObservable<bool>

An observable sequence containing a single element indicating whether the source sequence is empty.

Type Parameters

TSource

The type of the elements in the source sequence.