Share via


Observable.Start<TSource> Method (Func<TSource>, IScheduler)

Invokes the function asynchronously.

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

Syntax

'Declaration
Public Shared Function Start(Of TSource) ( _
    function As Func(Of TSource), _
    scheduler As IScheduler _
) As IObservable(Of TSource)
'Usage
Dim function As Func(Of TSource)
Dim scheduler As IScheduler
Dim returnValue As IObservable(Of TSource)

returnValue = Observable.Start(function, _
    scheduler)
public static IObservable<TSource> Start<TSource>(
    Func<TSource> function,
    IScheduler scheduler
)
public:
generic<typename TSource>
static IObservable<TSource>^ Start(
    Func<TSource>^ function, 
    IScheduler^ scheduler
)
static member Start : 
        function:Func<'TSource> * 
        scheduler:IScheduler -> IObservable<'TSource> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The type of source.

Parameters

  • function
    Type: System.Func<TSource>
    The function used to synchronization.

Return Value

Type: System.IObservable<TSource>
The function asynchronously.

See Also

Reference

Observable Class

Start Overload

System.Reactive.Linq Namespace