JoinableTask<T>.GetAwaiter Method
Gets an awaiter that is equivalent to calling JoinAsync.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Function GetAwaiter As TaskAwaiter(Of T)
public TaskAwaiter<T> GetAwaiter()
public:
TaskAwaiter<T> GetAwaiter()
member GetAwaiter : unit -> TaskAwaiter<'T>
public function GetAwaiter() : TaskAwaiter<T>
Return Value
Type: System.Runtime.CompilerServices.TaskAwaiter<T>
Returns TaskAwaiter<TResult>.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.