<PackageReference Include="Microsoft.Bcl" Version="1.1.8" />

System.Runtime.CompilerServices.INotifyCompletion

public interface INotifyCompletion
Represents an operation that will schedule continuations when the operation completes.
void OnCompleted(Action continuation)

Schedules the continuation action to be invoked when the instance completes.