Soenneker.Extensions.Task 4.0.127

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Extensions.Task --version 4.0.127
                    
NuGet\Install-Package Soenneker.Extensions.Task -Version 4.0.127
                    
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.Task" Version="4.0.127" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.Task" Version="4.0.127" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.Task" />
                    
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.Task --version 4.0.127
                    
#r "nuget: Soenneker.Extensions.Task, 4.0.127"
                    
#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.Task@4.0.127
                    
#: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.Task&version=4.0.127
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Task&version=4.0.127
                    
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.Task

A collection of helpful Task extension methods.

Installation

dotnet add package Soenneker.Extensions.Task

Quick start

using Soenneker.Extensions.Task;

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

Common operations

  • NoSync() - Configures an awaiter used to await this Task to continue on a different context. Equivalent to task.ConfigureAwait(false);.
  • ToValueTask() - Converts a Task to a ValueTask. If the task is already completed successfully, returns a completed ValueTask. Equivalent to new ValueTask(task).
  • AwaitSync() - Synchronously awaits the specified Task. This method blocks the calling thread until the task completes.
  • AwaitSyncSafe() - Attempts to synchronously wait in a way that avoids common deadlocks by running the await on the ThreadPool. This is still not a silver bullet; prefer async all the way when possible.
  • FireAndForgetSafe() - Fires the task without awaiting it, while ensuring any exceptions are observed. Optionally forwards the exception to onException.
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 (49)

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

Package Downloads
Soenneker.Extensions.Stream

A collection of helpful Stream extension methods

Soenneker.Extensions.Enumerable

A collection of helpful enumerable extension methods

Soenneker.Utils.BackgroundQueue

A high-performance background Task/ValueTask queue

Serilog.Sinks.XUnit.Injectable

The injectable, xUnit test output sink for Serilog

Soenneker.Asyncs.Locks

The fastest .NET async lock.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.128 38,445 8/30/2026
4.0.127 29,059 8/29/2026
4.0.126 8,612 8/29/2026
4.0.125 393,781 7/27/2026
4.0.124 163,420 7/18/2026
4.0.123 288,637 6/18/2026
4.0.122 244,135 6/5/2026
4.0.121 306,641 4/22/2026
4.0.120 288,165 3/12/2026
4.0.119 2,152 3/12/2026
4.0.118 1,807 3/12/2026
4.0.117 9,695 3/12/2026
4.0.116 93,487 3/10/2026
4.0.115 58,633 3/9/2026
4.0.114 3,976 3/9/2026
4.0.113 1,645 3/9/2026
4.0.112 115,815 3/4/2026
4.0.111 404,182 1/6/2026
4.0.110 51,987 1/2/2026
4.0.109 47,499 12/31/2025
Loading failed

Improve XML documentation