Skip to content

Commit

Permalink
Ensure the errors from AsyncLazyFailable<TResult>._activeTask are a…
Browse files Browse the repository at this point in the history
…lways consumed by at least one task (i.e. never bubble up to the worker). pt.3
  • Loading branch information
drasmart committed Oct 16, 2024
1 parent e2f50fd commit a94fc3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private Task<TResult> GetOrBuildActiveTask()
{
return _activeTask;
}
_activeTask = Task.Run(_mainFunc);
_activeTask = Task.Run(TryGetNewValue);
_errorHandlingTask = ConsumeActiveTaskFailure(_activeTask);
return _activeTask;
}
Expand Down

0 comments on commit a94fc3c

Please sign in to comment.