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

March 22, 2012

Converts the function into an asynchronous function.

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

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
)

Type Parameters

T1
T2
T3
T4
TResult

Parameters

function
Type: System.Func<T1, T2, T3, T4, TResult>
scheduler
Type: Microsoft.Phone.Reactive.IScheduler

Return Value

Type: System.Func<T1, T2, T3, T4, IObservable<TResult>>
Returns Func<T1, T2, T3, T4, TResult>.

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.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show: