Skip to content

v7.0.0

Latest
Compare
Choose a tag to compare
@brminnick brminnick released this 14 Nov 17:09
· 18 commits to main since this release
d9989dd

.NET 8.0 + ConfigureAwaitOptions Support

In this release, we add .NET 8.0 as a target framework 馃帀

We've also added support to .SafeFireAndForget() for ConfigureAwaitOptions:

public static void SafeFireAndForget(this System.Threading.Tasks.Task task, ConfigureAwaitOptions configureAwaitOptions, Action<Exception>? onException = null)

.NET 8.0 Introduces ConfigureAwaitOptions that allow users to customize the behavior when awaiting:

  • ConfigureAwaitOptions.None
    • No options specified
  • ConfigureAwaitOptions.SuppressThrowing
    • Avoids throwing an exception at the completion of awaiting a Task that ends in the Faulted or Canceled state
  • ConfigureAwaitOptions.ContinueOnCapturedContext
    • Attempts to marshal the continuation back to the original SynchronizationContext or TaskScheduler present on the originating thread at the time of the await
  • ConfigureAwaitOptions.ForceYielding
    • Forces an await on an already completed Task to behave as if the Task wasn't yet completed, such that the current asynchronous method will be forced to yield its execution

What's Changed

Housekeeping

Full Changelog: v6.0.6...v7.0.0