Sdílet prostřednictvím


Qbservable.Toasync<T1, T2, T3, TResult> – metoda (IQbservableProvider, Expression<Func<T1, T2, T3, TResult>>, IScheduler)

Převede funkci na asynchronní funkci.

Obor názvů:System.Reactive.Linq
Sestavení: System.Reactive.Providers (v System.Reactive.Providers.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, TResult) ( _
    provider As IQbservableProvider, _
    function As Expression(Of Func(Of T1, T2, T3, TResult)), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, IQbservable(Of TResult))
'Usage
Dim provider As IQbservableProvider
Dim function As Expression(Of Func(Of T1, T2, T3, TResult))
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, IQbservable(Of TResult))

returnValue = provider.ToAsync(function, _
    scheduler)
public static Func<T1, T2, T3, IQbservable<TResult>> ToAsync<T1, T2, T3, TResult>(
    this IQbservableProvider provider,
    Expression<Func<T1, T2, T3, TResult>> function,
    IScheduler scheduler
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename TResult>
static Func<T1, T2, T3, IQbservable<TResult>^>^ ToAsync(
    IQbservableProvider^ provider, 
    Expression<Func<T1, T2, T3, TResult>^>^ function, 
    IScheduler^ scheduler
)
static member ToAsync : 
        provider:IQbservableProvider * 
        function:Expression<Func<'T1, 'T2, 'T3, 'TResult>> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, IQbservable<'TResult>> 
JScript does not support generic types and methods.

Parametry typu

  • T1
    První typ funkce.
  • T2
    Druhý typ funkce.
  • T3
    Třetí typ funkce.
  • Tresult
    Typ výsledku.

Parametry

Návratová hodnota

Typ: System.Func<T1, T2, T3, IQbservable<TResult>>
Funkce do asynchronní funkce.

Poznámka k využití

V jazyce Visual Basic a C# můžete tuto metodu volat jako metodu instance na libovolném objektu typu IQbservableProvider. Pokud k volání této metody použijete syntaxi metody instance, vynechejte první parametr. Další informace naleznete v tématech a .

Viz také

Reference

Qbservable – třída

ToAsync – přetížení

System.Reactive.Linq – obor názvů