79769031

Date: 2025-09-19 01:33:40
Score: 0.5
Natty:
Report link

Since .Net 8 (currently in .Net 8 and 9) there is a ConfigureAwait overload that accepts new ConfigureAwaitOptions enum, so now you can simply do this:

await task.ConfigureAwait(ConfigureAwaitOptions.SuppressThrowing);

and any exceptions literally will not be thrown.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Cordis