Table of Contents

Class DelaySubscription

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents an operator that time-shifts the observable sequence by delaying the subscription by the specified time interval.

Marble diagram

The DelaySubscription operator modifies the source sequence by pausing for the specified duration before subscribing to the original sequence. This has the effect of delaying the start of the sequence by the specified time interval.

DelaySubscription can be used to control the timing of initialization. Note that if a source is hot, delaying the start of the sequence will not preserve past data, since unlike Delay the DelaySubscription operator does not store or have access to any historical data.

public class DelaySubscription : Combinator
Inheritance
DelaySubscription
Inherited Members

Properties

DueTime

Gets or sets the time interval by which to delay the subscription to the sequence.

public TimeSpan DueTime { get; set; }

Property Value

TimeSpan

Methods

Process<TSource>(IObservable<TSource>)

Time-shifts the observable sequence by delaying the subscription by the specified time interval.

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

Parameters

source IObservable<TSource>

The source sequence to delay subscription for.

Returns

IObservable<TSource>

The time-shifted sequence.

Type Parameters

TSource

The type of the elements in the source sequence.