Вот вы:
public static async ValueTask ContinueWith(this ValueTask source,
Action<ValueTask, Exception> continuationAction)
{
Exception exception = null;
try
{
await source.ConfigureAwait(false);
}
catch (Exception ex)
{
exception = ex;
}
continuationAction(source, exception);
}