Table of Contents

Method Process

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Process<TSource, TOther>(IObservable<TSource>, IObservable<TOther>)

Subscribes to an observable sequence only after the second sequence produces an element.

public IObservable<TSource> Process<TSource, TOther>(IObservable<TSource> source, IObservable<TOther> other)

Parameters

source IObservable<TSource>

The sequence to subscribe to.

other IObservable<TOther>

The observable sequence indicating when to subscribe to the source sequence.

Returns

IObservable<TSource>

An observable sequence that is identical to the source sequence but where subscription is delayed until the other sequence emits a notification.

Type Parameters

TSource

The type of the elements in the source sequence.

TOther

The type of the elements in the other sequence.