Table of Contents

Method Process

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

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

Propagates the observable sequence that reacts first.

public IObservable<TSource> Process<TSource>(IObservable<TSource> first, IObservable<TSource> second)

Parameters

first IObservable<TSource>

First observable sequence.

second IObservable<TSource>

Second observable sequence.

Returns

IObservable<TSource>

An observable sequence that surfaces either of the given sequences, whichever reacted first.

Type Parameters

TSource

The type of the elements in the source sequences.

Process<TSource>(params IObservable<TSource>[])

Propagates the observable sequence that reacts first.

public IObservable<TSource> Process<TSource>(params IObservable<TSource>[] sources)

Parameters

sources IObservable<TSource>[]

Observable sources competing to react first.

Returns

IObservable<TSource>

An observable sequence that surfaces any of the given sequences, whichever reacted first.

Type Parameters

TSource

The type of the elements in the source sequences.