<PackageReference Include="Microsoft.Bcl.Async" Version="1.0.166" />

TaskAwaiter

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

Gets whether the task being awaited is completed.

public void GetResult()

Ends the await on the completed Task.

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.