Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Generates an observable sequence that repeats the given element infinitely.
Namespace: System.Reactive.Linq
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
Public Shared Function Repeat(Of TResult) ( _
value As TResult, _
scheduler As IScheduler _
) As IObservable(Of TResult)
'Usage
Dim value As TResult
Dim scheduler As IScheduler
Dim returnValue As IObservable(Of TResult)
returnValue = Observable.Repeat(value, _
scheduler)
public static IObservable<TResult> Repeat<TResult>(
TResult value,
IScheduler scheduler
)
public:
generic<typename TResult>
static IObservable<TResult>^ Repeat(
TResult value,
IScheduler^ scheduler
)
static member Repeat :
value:'TResult *
scheduler:IScheduler -> IObservable<'TResult>
JScript does not support generic types and methods.
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.