Represents an object that waits for the completion of an asynchronous task and provides a parameter for the result.
This API supports the product infrastructure and is not intended to be used directly from your code.
generic <typename TResult> public value class TaskAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion
public struct TaskAwaiter<TResult> : System.Runtime.CompilerServices.ICriticalNotifyCompletion
type TaskAwaiter<'Result> = struct interface ICriticalNotifyCompletion interface INotifyCompletion
Public Structure TaskAwaiter(Of TResult) Implements ICriticalNotifyCompletion
The result for the task.
This type and its members are intended for use by the compiler.
Gets a value that indicates whether the asynchronous task has completed.
Ends the wait for the completion of the asynchronous task.
Sets the action to perform when the TaskAwaiter<TResult> object stops waiting for the asynchronous task to complete.
Schedules the continuation action for the asynchronous task associated with this awaiter.