AsyncAwaitBestPractices Versions Save

Extensions for System.Threading.Tasks.Task and System.Threading.Tasks.ValueTask

7.0.0

6 months ago

.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: https://github.com/brminnick/AsyncAwaitBestPractices/compare/v6.0.6...v7.0.0

v6.0.6

1 year ago

New In This Release

  • Add Support for .NET 7.0

What's Changed

Full Changelog: https://github.com/brminnick/AsyncAwaitBestPractices/compare/v6.0.5...v6.0.6

v6.0.5

1 year ago

What's Changed

Full Changelog: https://github.com/brminnick/AsyncAwaitBestPractices/compare/v6.0.4...v6.0.5

v6.0.4

2 years ago

What's Changed

Full Changelog: https://github.com/brminnick/AsyncAwaitBestPractices/compare/v6.0.3...v6.0.4

v6.0.3

2 years ago

v6.0.2

2 years ago

New In This Release:

  • Mark internal classes as abstract
  • Update AssemblyFileVersion
  • Add NuGet README

v6.0.1

2 years ago

New In This Release:

  • Mark internal classes as abstract
  • Update AssemblyFileVersion

v6.0.0

2 years ago

New In This Release:

  • Add AsyncCommand Support for Nullable Value Types
  • Add AsyncValueCommand Support for Nullable Value Types

v6.0.0-pre1

2 years ago

New In This Release:

  • Add AsyncCommand Support for Nullable Value Types
  • Add AsyncValueCommand Support for Nullable Value Types

v5.1.0

3 years ago

New in this Release:

  • Improve Nullability using additional support for nullable generics introduced in C# 9.0