Soenneker.Extensions.ValueTask 4.0.119

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Extensions.ValueTask --version 4.0.119
                    
NuGet\Install-Package Soenneker.Extensions.ValueTask -Version 4.0.119
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Extensions.ValueTask" Version="4.0.119" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.ValueTask" Version="4.0.119" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.ValueTask" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Extensions.ValueTask --version 4.0.119
                    
#r "nuget: Soenneker.Extensions.ValueTask, 4.0.119"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Extensions.ValueTask@4.0.119
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Extensions.ValueTask&version=4.0.119
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.ValueTask&version=4.0.119
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Extensions.ValueTask

A collection of helpful ValueTask extension methods.

Installation

dotnet add package Soenneker.Extensions.ValueTask

Quick start

using Soenneker.Extensions.ValueTask;

// Given an existing System.Threading.Tasks.ValueTask named valueTask:
var result = valueTask.NoSync();

Common operations

  • NoSync() - Configures an awaiter for the specified ValueTask that does not capture the current synchronization context. Equivalent to calling ConfigureAwait(false).
  • AwaitSync() - Synchronously blocks until ValueTask<T> completes and returns its result. It can deadlock on a captured UI or ASP.NET synchronization context; prefer normal await or AwaitSyncSafe() when possible.
  • AwaitSyncSafe() - Synchronously waits for a ValueTask to complete while avoiding synchronization-context deadlocks.
  • FireAndForgetSafe() - Executes the specified ValueTask in a fire-and-forget manner, optionally invoking a callback if an exception occurs. This method ensures that exceptions are always observed to prevent unobserved-task exceptions.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (37)

Showing the top 5 NuGet packages that depend on Soenneker.Extensions.ValueTask:

Package Downloads
Soenneker.Utils.AsyncSingleton

An externally initializing singleton that uses double-check asynchronous locking, with optional async and sync disposal

Soenneker.Extensions.Stream

A collection of helpful Stream extension methods

Soenneker.Extensions.Enumerable

A collection of helpful enumerable extension methods

Soenneker.Utils.MemoryStream

An easy modern MemoryStream utility

Soenneker.Utils.BackgroundQueue

A high-performance background Task/ValueTask queue

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.120 62,703 8/30/2026
4.0.119 31,607 8/29/2026
4.0.118 426,781 7/28/2026
4.0.117 227,457 7/16/2026
4.0.116 254,869 6/18/2026
4.0.115 240,063 6/5/2026
4.0.113 586,457 3/12/2026
4.0.112 3,762 3/12/2026
4.0.111 1,363 3/12/2026
4.0.110 12,429 3/12/2026
4.0.109 95,485 3/10/2026
4.0.108 59,636 3/9/2026
4.0.107 5,988 3/9/2026
4.0.106 3,321 3/9/2026
4.0.105 116,546 3/4/2026
4.0.104 332,885 1/12/2026
4.0.103 95,901 1/6/2026
4.0.102 51,476 1/2/2026
4.0.101 45,703 12/31/2025
4.0.100 176 12/31/2025
Loading failed

Improve README documentation