<PackageReference Include="Microsoft.Bcl.Async" Version="1.0.12-beta" />

TaskAwaiter<TResult>

Provides an awaiter for awaiting a Task<T>.
public bool IsCompleted { get; }

Gets whether the task being awaited is completed.

public TResult GetResult()

Ends the await on the completed Task<T>.

public void OnCompleted(Action continuation)

Schedules the continuation onto the Task associated with this TaskAwaiter.

public void UnsafeOnCompleted(Action continuation)

Schedules the continuation onto the Task associated with this TaskAwaiter.