Observable

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>)

Converts the function into an asynchronous function.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in 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) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> action
)
[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>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, 'T16> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, 'T16, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • T14
    The fourteenth type of function.

  • T15
    The fifteenth type of function.

  • T16
    The sixteenth type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> function
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9, typename T10, typename TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'TResult> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> action
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9, typename T10>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, TResult> Method (Func<T1, T2, T3, T4, TResult>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, TResult) ( _
    function As Func(Of T1, T2, T3, T4, TResult) _
) As Func(Of T1, T2, T3, T4, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, TResult)
Dim returnValue As Func(Of T1, T2, T3, T4, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, T3, T4, IObservable<TResult>> ToAsync<T1, T2, T3, T4, TResult>(
    this Func<T1, T2, T3, T4, TResult> function
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename TResult>
static Func<T1, T2, T3, T4, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'TResult> -> Func<'T1, 'T2, 'T3, 'T4, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, T4, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, TResult) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, TResult)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> function
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'TResult> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> action,
    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>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, TResult> Method (Func<T1, T2, TResult>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, TResult) ( _
    function As Func(Of T1, T2, TResult) _
) As Func(Of T1, T2, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, TResult)
Dim returnValue As Func(Of T1, T2, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, IObservable<TResult>> ToAsync<T1, T2, TResult>(
    this Func<T1, T2, TResult> function
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename TResult>
static Func<T1, T2, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'TResult> -> Func<'T1, 'T2, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable(Of TResult))

returnValue = function.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, 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 TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>^ function, 
    IScheduler^ scheduler
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'TResult> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7> Method (Action<T1, T2, T3, T4, T5, T6, T7>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7>(
    this Action<T1, T2, T3, T4, T5, T6, T7> action,
    IScheduler scheduler
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7>
static Func<T1, T2, T3, T4, T5, T6, T7, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, TResult>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

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

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

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable(Of TResult))

returnValue = function.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, 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 TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>^ function, 
    IScheduler^ scheduler
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'TResult> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, TResult>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, TResult) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, TResult)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, TResult> function
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'TResult> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, T4, T5, T6, T7, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4> Method (Action<T1, T2, T3, T4>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4) ( _
    action As Action(Of T1, T2, T3, T4) _
) As Func(Of T1, T2, T3, T4, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4)
Dim returnValue As Func(Of T1, T2, T3, T4, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, T4, IObservable<Unit>> ToAsync<T1, T2, T3, T4>(
    this Action<T1, T2, T3, T4> action
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4>
static Func<T1, T2, T3, T4, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4> -> Func<'T1, 'T2, 'T3, 'T4, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3, T4>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult> function
)
[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 TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'TResult> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>, IScheduler)

Converts the function into an asynchronous function.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in 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) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)
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 Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> action,
    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>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, 'T16> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, 'T16, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • T14
    The fourteenth type of function.

  • T15
    The fifteenth type of function.

  • T16
    The sixteenth type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>)

Converts the function into an asynchronous function.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in 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, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult> function
)
[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 TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, 'TResult> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • T14
    The fourteenth type of function.

  • T15
    The fifteenth type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2> Method (Action<T1, T2>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2) ( _
    action As Action(Of T1, T2), _
    scheduler As IScheduler _
) As Func(Of T1, T2, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, IObservable<Unit>> ToAsync<T1, T2>(
    this Action<T1, T2> action,
    IScheduler scheduler
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2>
static Func<T1, T2, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2> * 
        scheduler:IScheduler -> Func<'T1, 'T2, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

Parameters

Return Value

Type: System.Func<T1, T2, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, TResult> Method (Func<T1, T2, T3, T4, T5, T6, TResult>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, TResult) _
) As Func(Of T1, T2, T3, T4, T5, T6, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, TResult)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, TResult> function
)
[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, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'TResult> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, T4, T5, T6, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> action,
    IScheduler scheduler
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, TResult> Method (Func<T1, T2, T3, T4, T5, T6, TResult>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

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

returnValue = function.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, TResult>(
    this 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, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, TResult>^ function, 
    IScheduler^ scheduler
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'TResult> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, TResult> Method (Func<T1, T2, T3, T4, T5, TResult>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

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

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

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • TResult
    The type of result

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> action
)
[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>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5> Method (Action<T1, T2, T3, T4, T5>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5) ( _
    action As Action(Of T1, T2, T3, T4, T5) _
) As Func(Of T1, T2, T3, T4, T5, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, T4, T5, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5>(
    this Action<T1, T2, T3, T4, T5> action
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5>
static Func<T1, T2, T3, T4, T5, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3, T4, T5>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, TResult> Method (Func<T1, T2, T3, T4, T5, TResult>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, TResult) _
) As Func(Of T1, T2, T3, T4, T5, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, TResult)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, T3, T4, T5, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, TResult>(
    this Func<T1, T2, T3, T4, T5, TResult> function
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename TResult>
static Func<T1, T2, T3, T4, T5, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'TResult> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, T4, T5, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, TResult> Method (Func<T1, T2, T3, T4, TResult>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

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

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

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult> function
)
[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 TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'TResult> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>, IScheduler)

Converts the function into an asynchronous function.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in 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.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • T14
    The fourteenth type of function.

  • T15
    The fifteenth type of function.

  • T16
    The sixteenth type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, TResult> Method (Func<T1, T2, T3, TResult>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, TResult) ( _
    function As Func(Of T1, T2, T3, TResult) _
) As Func(Of T1, T2, T3, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, TResult)
Dim returnValue As Func(Of T1, T2, T3, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, T3, IObservable<TResult>> ToAsync<T1, T2, T3, TResult>(
    this Func<T1, T2, T3, TResult> function
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename TResult>
static Func<T1, T2, T3, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'TResult> -> Func<'T1, 'T2, 'T3, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4> Method (Action<T1, T2, T3, T4>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4) ( _
    action As Action(Of T1, T2, T3, T4), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, IObservable<Unit>> ToAsync<T1, T2, T3, T4>(
    this Action<T1, T2, T3, T4> action,
    IScheduler scheduler
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4>
static Func<T1, T2, T3, T4, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>, IScheduler)

Converts the function into an asynchronous function.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in 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, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, 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, 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, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, 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 TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>^ function, 
    IScheduler^ scheduler
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, 'TResult> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • T14
    The fourteenth type of function.

  • T15
    The fifteenth type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8> action,
    IScheduler scheduler
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3> Method (Action<T1, T2, T3>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3) ( _
    action As Action(Of T1, T2, T3) _
) As Func(Of T1, T2, T3, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3)
Dim returnValue As Func(Of T1, T2, T3, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, IObservable<Unit>> ToAsync<T1, T2, T3>(
    this Action<T1, T2, T3> action
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3>
static Func<T1, T2, T3, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3> -> Func<'T1, 'T2, 'T3, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, TResult> Method (Func<T1, T2, TResult>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

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

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

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>, IScheduler)

Converts the function into an asynchronous function.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in 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, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable(Of TResult))

returnValue = function.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, 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 TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>^ function, 
    IScheduler^ scheduler
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'TResult> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • T14
    The fourteenth type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, TResult> Method (Func<T1, T2, T3, TResult>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

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

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

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, T3, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> action
)
[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>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>)

Converts the function into an asynchronous function.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in 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) _
) 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 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()
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
)
[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
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, 'T16, 'TResult> -> 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.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • T14
    The fourteenth type of function.

  • T15
    The fifteenth type of function.

  • T16
    The sixteenth type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> action,
    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>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable(Of TResult))

returnValue = function.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, 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 TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>^ function, 
    IScheduler^ scheduler
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'TResult> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable(Of TResult))

returnValue = function.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, 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 TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>^ function, 
    IScheduler^ scheduler
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'TResult> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8> action
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3, T4, T5, T6, T7, T8>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>)

Converts the function into an asynchronous function.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in 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) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> action
)
[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>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • T14
    The fourteenth type of function.

  • T15
    The fifteenth type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

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

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

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>, IScheduler)

Converts the function into an asynchronous function.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in 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) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> action,
    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>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • T14
    The fourteenth type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult> function
)
[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 TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'TResult> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5> Method (Action<T1, T2, T3, T4, T5>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5) ( _
    action As Action(Of T1, T2, T3, T4, T5), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5>(
    this Action<T1, T2, T3, T4, T5> action,
    IScheduler scheduler
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5>
static Func<T1, T2, T3, T4, T5, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6> Method (Action<T1, T2, T3, T4, T5, T6>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6>(
    this Action<T1, T2, T3, T4, T5, T6> action,
    IScheduler scheduler
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
static Func<T1, T2, T3, T4, T5, T6, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> action
)
[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>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> function
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9, typename TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'TResult> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>, IScheduler)

Converts the function into an asynchronous function.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in 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) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> action,
    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>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'T15, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • T14
    The fourteenth type of function.

  • T15
    The fifteenth type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> action,
    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>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable(Of TResult))

returnValue = function.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, 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 TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>^ function, 
    IScheduler^ scheduler
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'TResult> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • TResult
    The type of result.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2> Method (Action<T1, T2>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2) ( _
    action As Action(Of T1, T2) _
) As Func(Of T1, T2, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2)
Dim returnValue As Func(Of T1, T2, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, IObservable<Unit>> ToAsync<T1, T2>(
    this Action<T1, T2> action
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2>
static Func<T1, T2, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2> -> Func<'T1, 'T2, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

Parameters

  • action
    Type: System.Action<T1, T2>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7> Method (Action<T1, T2, T3, T4, T5, T6, T7>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7>(
    this Action<T1, T2, T3, T4, T5, T6, T7> action
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7>
static Func<T1, T2, T3, T4, T5, T6, T7, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3, T4, T5, T6, T7>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3> Method (Action<T1, T2, T3>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3) ( _
    action As Action(Of T1, T2, T3), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, IObservable<Unit>> ToAsync<T1, T2, T3>(
    this Action<T1, T2, T3> action,
    IScheduler scheduler
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3>
static Func<T1, T2, T3, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6> Method (Action<T1, T2, T3, T4, T5, T6>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6) _
) As Func(Of T1, T2, T3, T4, T5, T6, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6>(
    this Action<T1, T2, T3, T4, T5, T6> action
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
static Func<T1, T2, T3, T4, T5, T6, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3, T4, T5, T6>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>, IScheduler)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13), _
    scheduler As IScheduler _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
Dim scheduler As IScheduler
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable(Of Unit))

returnValue = action.ToAsync(scheduler)
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> action,
    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>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>^ action, 
    IScheduler^ scheduler
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13> * 
        scheduler:IScheduler -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

Parameters

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>)

Converts the function into an asynchronous function.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in 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) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> action
)
[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>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • T14
    The fourteenth type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9> Method (Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of T1, T2, T3, T4, T5, T6, T7, T8, T9) ( _
    action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable(Of Unit))
'Usage
Dim action As Action(Of T1, T2, T3, T4, T5, T6, T7, T8, T9)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable(Of Unit))

returnValue = action.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable<Unit>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9>(
    this Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> action
)
[ExtensionAttribute]
public:
generic<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable<Unit>^>^ ToAsync(
    Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>^ action
)
static member ToAsync : 
        action:Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, IObservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

Parameters

  • action
    Type: System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>
    The action used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IObservable<Unit>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace

Observable.ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult> Method (Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>)

Converts the function into an asynchronous function.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in 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, TResult) ( _
    function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult) _
) As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable(Of TResult))
'Usage
Dim function As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult)
Dim returnValue As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable(Of TResult))

returnValue = function.ToAsync()
public static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable<TResult>> ToAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>(
    this Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult> function
)
[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 TResult>
static Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable<TResult>^>^ ToAsync(
    Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>^ function
)
static member ToAsync : 
        function:Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, 'TResult> -> Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'T9, 'T10, 'T11, 'T12, 'T13, 'T14, IObservable<'TResult>> 
JScript does not support generic types and methods.

Type Parameters

  • T1
    The first type of function.

  • T2
    The second type of function.

  • T3
    The third type of function.

  • T4
    The fourth type of function.

  • T5
    The fifth type of function.

  • T6
    The sixth type of function.

  • T7
    The seventh type of function.

  • T8
    The eighth type of function.

  • T9
    The ninth type of function.

  • T10
    The tenth type of function.

  • T11
    The eleventh type of function.

  • T12
    The twelfth type of function.

  • T13
    The thirteenth type of function.

  • T14
    The fourteenth type of function.

  • TResult
    The type of result.

Parameters

  • function
    Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>
    The function used to synchronization.

Return Value

Type: System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, IObservable<TResult>>
The function into an asynchronous function.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

ToAsync Overload

System.Reactive.Linq Namespace