AsyncValueExtensions.AsAsyncValue<T>(Task<T>, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.