Qbservable.ToAsync Method (IQbservableProvider, Expression<Action>)
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 ( _
provider As IQbservableProvider, _
action As Expression(Of Action) _
) As Func(Of IQbservable(Of Unit))
'Usage
Dim provider As IQbservableProvider
Dim action As Expression(Of Action)
Dim returnValue As Func(Of IQbservable(Of Unit))
returnValue = provider.ToAsync(action)
public static Func<IQbservable<Unit>> ToAsync(
this IQbservableProvider provider,
Expression<Action> action
)
[ExtensionAttribute]
public:
static Func<IQbservable<Unit>^>^ ToAsync(
IQbservableProvider^ provider,
Expression<Action^>^ action
)
static member ToAsync :
provider:IQbservableProvider *
action:Expression<Action> -> Func<IQbservable<Unit>>
public static function ToAsync(
provider : IQbservableProvider,
action : Expression<Action>
) : Func<IQbservable<Unit>>
Parameters
- provider
Type: System.Reactive.Linq.IQbservableProvider
The local Qbservable provider.
- action
Type: System.Linq.Expressions.Expression<Action>
The action used to synchronization.
Return Value
Type: System.Func<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 .