Share via


AsyncValueExtensions.AsAsyncValue<T>(Task<T>, T) Method

Definition

For internal use by the Xamarin.Forms platform.

public static Xamarin.Forms.Internals.AsyncValue<T> AsAsyncValue<T> (this System.Threading.Tasks.Task<T> valueTask, T defaultValue = default);
static member AsAsyncValue : System.Threading.Tasks.Task<'T> * 'T -> Xamarin.Forms.Internals.AsyncValue<'T>

Type Parameters

T

For internal use by the Xamarin.Forms platform.

Parameters

valueTask
System.Threading.Tasks.Task<T>

For internal use by the Xamarin.Forms platform.

defaultValue
T

For internal use by the Xamarin.Forms platform.

Returns

For internal use by the Xamarin.Forms platform.

Applies to