Soenneker.Extensions.Task
4.0.127
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
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" />
<PackageReference Include="Soenneker.Extensions.Task" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Soenneker.Extensions.Task&version=4.0.127
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 thisTaskto continue on a different context. Equivalent totask.ConfigureAwait(false);.ToValueTask()- Converts aTaskto aValueTask. If the task is already completed successfully, returns a completedValueTask. Equivalent tonew ValueTask(task).AwaitSync()- Synchronously awaits the specifiedTask. 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 toonException.
| Product | Versions 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 (34)
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.MemoryStream
An easy modern MemoryStream utility |
|
|
Soenneker.Utils.BackgroundQueue
A high-performance background Task/ValueTask queue |
|
|
Serilog.Sinks.XUnit.Injectable
The injectable, xUnit test output sink for Serilog |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.129 | 30,366 | 9/12/2026 |
| 4.0.128 | 302,163 | 8/30/2026 |
| 4.0.127 | 38,383 | 8/29/2026 |
| 4.0.126 | 9,957 | 8/29/2026 |
| 4.0.125 | 416,629 | 7/27/2026 |
| 4.0.124 | 164,381 | 7/18/2026 |
| 4.0.123 | 289,895 | 6/18/2026 |
| 4.0.122 | 244,368 | 6/5/2026 |
| 4.0.121 | 307,531 | 4/22/2026 |
| 4.0.120 | 291,536 | 3/12/2026 |
| 4.0.119 | 2,158 | 3/12/2026 |
| 4.0.118 | 1,811 | 3/12/2026 |
| 4.0.117 | 9,704 | 3/12/2026 |
| 4.0.116 | 93,936 | 3/10/2026 |
| 4.0.115 | 58,642 | 3/9/2026 |
| 4.0.114 | 3,983 | 3/9/2026 |
| 4.0.113 | 1,654 | 3/9/2026 |
| 4.0.112 | 115,839 | 3/4/2026 |
| 4.0.111 | 404,960 | 1/6/2026 |
| 4.0.110 | 52,036 | 1/2/2026 |
Loading failed
Improve XML documentation