Extensions.ToTask<T>(IAwaitable<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.
public static System.Threading.Tasks.Task<T> ToTask<T> (this Microsoft.Bot.Builder.Dialogs.IAwaitable<T> item);
static member ToTask : Microsoft.Bot.Builder.Dialogs.IAwaitable<'T> -> System.Threading.Tasks.Task<'T>
<Extension()>
Public Function ToTask(Of T) (item As IAwaitable(Of T)) As Task(Of T)
Type Parameters
- T
Parameters
- item
- IAwaitable<T>
Returns
Task<T>