Export (0) Print
Expand All

Observable.ToAsync Method (Action)

March 22, 2012

Converts the action into an asynchronous function.

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

public static Func<IObservable<Unit>> ToAsync(
	this Action action
)

Parameters

action
Type: System.Action

Return Value

Type: System.Func<IObservable<Unit>>
Returns Func<TResult>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Action. 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:
© 2014 Microsoft