Observable.ToAsync(Of TSource) Method (Action(Of TSource))

March 22, 2012

Converts the action into an asynchronous function.

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

'Declaration
<ExtensionAttribute> _
Public Shared Function ToAsync(Of TSource) ( _
	action As Action(Of TSource) _
) As Func(Of TSource, IObservable(Of Unit))

Type Parameters

TSource

Parameters

action
Type: System.Action(Of TSource)

Return Value

Type: System.Func(Of TSource, IObservable(Of Unit))
Returns Func(Of T, TResult).

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action(Of TSource). When you use instance method syntax to call this method, omit the first parameter.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show: