Observable::Repeat<TResult> Method (TResult, IScheduler)

Generates an observable sequence that repeats the given element infinitely.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

public:
generic<typename TResult>
static IObservable<TResult>^ Repeat(
	TResult value, 
	IScheduler^ scheduler
)

Type Parameters

TResult

The type of result.

Parameters

value
Type: TResult
The element to repeat.
scheduler
Type: System.Reactive.Concurrency::IScheduler
The scheduler to run the producer loop on.

Return Value

Type: System::IObservable<TResult>
The observable sequence that repeats the given element infinitely.
Show: