Observable.Toasync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult> – metoda (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>, IScheduler)
Převede funkci na asynchronní funkci.
Obor názvů:System.Reactive.Linq
Sestavení: System.Reactive (v System.Reactive.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult) ( _
function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult), _
scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable(Of TResult))
returnValue = function.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>(
this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult> function,
IScheduler scheduler
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9, typename T10, typename T11, typename T12, typename T13, typename T14, typename T15, typename T16, typename TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable<TResult>^>^ ToAsync(
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>^ function,
IScheduler^ scheduler
)
static member ToAsync :
function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, 'T16, 'TResult> *
scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, 'T16, IObservable<'TResult>>
JScript does not support generic types and methods.
Parametry typu
- T1
První typ funkce.
- T2
Druhý typ funkce.
- T3
Třetí typ funkce.
- T4
Čtvrtý typ funkce.
- T5
Pátý typ funkce.
- T6
Šestý typ funkce.
- T7
Sedmý typ funkce
- T8
Osmý typ funkce.
- T9
Devátý typ funkce.
- T10
Desátý typ funkce.
- T11
Jedenáctý typ funkce.
- T12
Dvanáctý typ funkce.
- T13
Třináctý typ funkce.
- T14
Čtrnáctý typ funkce.
- T15
Patnáctý typ funkce.
- T16
Šestnáctý typ funkce.
- Tresult
Typ výsledku.
Parametry
- – funkce
Typ: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>
Funkce použitá k synchronizaci.
- scheduler
Typ: System.Reactive.Concurrency.IScheduler
Plánovač použitý k synchronizaci.
Návratová hodnota
Typ: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable<TResult>>
Z funkce do asynchronní funkce.
Poznámka k využití
V jazyce Visual Basic a C# můžete tuto metodu volat jako metodu instance pro libovolný objekt typu Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>. Pokud k volání této metody použijete syntaxi metody instance, vynechejte první parametr. Další informace naleznete v tématech a .