Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 committed Dec 10, 2024
1 parent 264eb26 commit f2dfe03
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public async Task ExecuteMaxFailedTestsCallbacksAsync(int maxFailedTests, Cancel

foreach (Func<int, CancellationToken, Task> callback in _maxFailedTestsCallbacks)
{
// For now, we are fine if the callback crashed us. It shouldn't happen for our
// current usage anyway and the APIs around this are all internal for now.
await callback.Invoke(maxFailedTests, cancellationToken);
}
}
Expand All @@ -52,6 +54,8 @@ public async Task ExecuteAbortCallbacksAsync()

foreach (Func<Task> callback in _abortCallbacks)
{
// For now, we are fine if the callback crashed us. It shouldn't happen for our
// current usage anyway and the APIs around this are all internal for now.
await callback.Invoke();
}
}
Expand Down

0 comments on commit f2dfe03

Please sign in to comment.