Condividi tramite


Metodo Qbservable.ToAsync<T1, T2, T3, T4, T5, T6, TResult> (IQbservableProvider, Expression<Func<T1, T2, T3, T4, T5, T6, TResult>>, IScheduler)

Converte la funzione in una funzione asincrona.

Spazio dei nomi:System.Reactive.Linq
Assemblea: System.Reactive.Providers (in System.Reactive.Providers.dll)

Sintassi

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

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

Parametri di tipo

  • T1
    Primo tipo di funzione.
  • T2
    Secondo tipo di funzione.
  • T3
    Terzo tipo di funzione.
  • T4
    Quarto tipo di funzione.
  • T5
    Quinto tipo di funzione.
  • T6
    Sesto tipo di funzione.
  • TResult
    Tipo di risultato.

Parametri

Valore restituito

Tipo: System.Func<T1, T2, T3, T4, T5, T6, IQbservable<TResult>>
Funzione in una funzione asincrona.

Nota sull'utilizzo

In Visual Basic e C# è possibile chiamare questo metodo come metodo di istanza su qualsiasi oggetto di tipo IQbservableProvider. Per chiamare il metodo usando la sintassi del metodo di istanza, omettere il primo parametro. Per altre informazioni, vedere o .

Vedere anche

Riferimento

Classe Qbservable

ToAsync Overload

Spazio dei nomi System.Reactive.Linq