Qbservable.ToAsync<TSource> Method (IQbservableProvider, Expression<Action<TSource>>)

Converts the function into an asynchronous function.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of TSource) ( _
    provider As IQbservableProvider, _
    action As Expression(Of Action(Of TSource)) _
) As Func(Of TSource, IQbservable(Of Unit))
'Usage
Dim provider As IQbservableProvider
Dim action As Expression(Of Action(Of TSource))
Dim returnValue As Func(Of TSource, IQbservable(Of Unit))

returnValue = provider.ToAsync(action)
public static Func<TSource, IQbservable<Unit>> ToAsync<TSource>(
    this IQbservableProvider provider,
    Expression<Action<TSource>> action
)
[ExtensionAttribute]
public:
generic<typename TSource>
static Func<TSource, IQbservable<Unit>^>^ ToAsync(
    IQbservableProvider^ provider, 
    Expression<Action<TSource>^>^ action
)
static member ToAsync : 
        provider:IQbservableProvider * 
        action:Expression<Action<'TSource>> -> Func<'TSource, IQbservable<Unit>> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The type of source.

Parameters

Return Value

Type: System.Func<TSource, IQbservable<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 IQbservableProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Qbservable Class

ToAsync Overload

System.Reactive.Linq Namespace