Observable.Return(TResult) Method (TResult, IScheduler)

Returns an observable sequence that contains a single value with a specified value and scheduler.

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

static member Return : 
        value:'TResult * 
        scheduler:IScheduler -> IObservable<'TResult> 

Type Parameters

TResult

The type of result.

Parameters

value
Type: TResult
The single element in the resulting observable sequence.
scheduler
Type: System.Reactive.Concurrency.IScheduler
The scheduler to send the single element on.

Return Value

Type: System.IObservable(TResult)
Observable sequence containing the single specified element.
Show: