Partilhar via


Método Observable.Start<TSource> (Func<TSource>, IScheduler)

Invoca a função de forma assíncrona.

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

Sintaxe

'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.

Parâmetros de tipo

  • TSource
    O tipo de fonte.

Parâmetros

  • função
    Tipo: System.Func<TSource>
    A função usada para sincronização.

Valor Retornado

Tipo: System.IObservable<TSource>
A função de forma assíncrona.

Consulte Também

Referência

Classe Observável

Iniciar Sobrecarga

System.Reactive.Linq Namespace