VOOZH about

URL: https://www.nuget.org/packages/TaskTupleAwaiter/

โ‡ฑ NuGet Gallery | TaskTupleAwaiter 2.3.0


๏ปฟ

TaskTupleAwaiter 2.3.0

dotnet add package TaskTupleAwaiter --version 2.3.0
 
 
NuGet\Install-Package TaskTupleAwaiter -Version 2.3.0
 
 
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="TaskTupleAwaiter" Version="2.3.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TaskTupleAwaiter" Version="2.3.0" />
 
Directory.Packages.props
<PackageReference Include="TaskTupleAwaiter" />
 
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 TaskTupleAwaiter --version 2.3.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TaskTupleAwaiter, 2.3.0"
 
 
#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 TaskTupleAwaiter@2.3.0
 
 
#: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=TaskTupleAwaiter&version=2.3.0
 
Install as a Cake Addin
#tool nuget:?package=TaskTupleAwaiter&version=2.3.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

TaskTupleAwaiter

๐Ÿ‘ Continuous Integration
๐Ÿ‘ NuGet
๐Ÿ‘ NuGet Downloads
๐Ÿ‘ License: MIT

Await multiple tasks with different return types โ€” elegantly.

TaskTupleAwaiter lets you await a tuple of tasks and destructure the results in a single line. No more juggling Task.WhenAll, casting from object, or writing verbose boilerplate to run independent async operations in parallel.

Before & After

// โŒ Without TaskTupleAwaiter
var userTask = GetUserAsync(id);
var ordersTask = GetOrdersAsync(id);
await Task.WhenAll(userTask, ordersTask);
var user = userTask.Result;
var orders = ordersTask.Result;

// โœ… With TaskTupleAwaiter
var (user, orders) = await (GetUserAsync(id), GetOrdersAsync(id));

Features

  • Tuple-based await โ€” fire multiple async calls in parallel and destructure results with a single await
  • Supports up to 16 tasks โ€” mix and match any combination of return types
  • ConfigureAwait support โ€” works with ConfigureAwait(false) and .NET 8+ ConfigureAwaitOptions
  • Non-generic Task support โ€” await tuples of Task (not just Task<T>) when you don't need return values
  • Zero dependencies โ€” a single file, no external packages (except System.ValueTuple on .NET Framework 4.6.2)
  • Broad compatibility โ€” supports .NET Standard 2.0+, .NET Framework 4.6.2+, and .NET 8+
  • NativeAOT ready โ€” the package sets <IsAotCompatible>true</IsAotCompatible> for .NET 8+ targets, and CI publishes downstream NativeAOT smoke tests

Installation

dotnet add package TaskTupleAwaiter

Or via the NuGet Package Manager:

Install-Package TaskTupleAwaiter

Usage

Basic โ€” two tasks with different return types

var (name, age) = await (GetNameAsync(), GetAgeAsync());

ConfigureAwait(false)

var (policy, preferences) = await (
 GetPolicyAsync(policyId, cancellationToken),
 GetPreferencesAsync(cancellationToken)
).ConfigureAwait(false);

ConfigureAwaitOptions (.NET 8+)

var (user, settings) = await (
 GetUserAsync(userId),
 GetSettingsAsync()
).ConfigureAwait(ConfigureAwaitOptions.None);

Many tasks at once (up to 16)

var (a, b, c, d, e) = await (
 GetAAsync(),
 GetBAsync(),
 GetCAsync(),
 GetDAsync(),
 GetEAsync()
);

Non-generic tasks (fire-and-await)

await (SendEmailAsync(), LogAuditAsync(), InvalidateCacheAsync());

How It Works

TaskTupleAwaiter provides extension methods on ValueTuple<Task<T1>, ..., Task<TN>> (and ValueTuple<Task, ..., Task>) that implement the awaitable pattern. Under the hood each awaiter calls Task.WhenAll to run the tasks concurrently, then unwraps the individual results into a tuple โ€” giving you the performance of parallel execution with the ergonomics of simple destructuring.

Compatibility

Target Version
.NET Standard 2.0
.NET Framework 4.6.2+
.NET 8.0+

Credits

Based on the original work by Joseph Musser (@jnm2) โ€” original gist.

License

ยฉ Brian Buvinghausen

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 is compatible.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

  • .NETStandard 2.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on TaskTupleAwaiter:

Package Downloads
Shinya.Core

Shinya.Framework

TheLair.Extensions

Package Description

Taf.Core.Extension

Package Description

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on TaskTupleAwaiter:

Repository Stars
ChangemakerStudios/Papercut-SMTP
Papercut SMTP -- The Simple Desktop Email Server
microsoft/onefuzz
A self-hosted Fuzzing-As-A-Service platform
itlibrium/DDD-starter-dotnet
Sample implementation and comparison of various approaches to building DDD applications. Useful as a baseline to quickly start a DDD dot net project.
lindexi/lindexi_gd
ๅšๅฎข็”จๅˆฐ็š„ไปฃ็ 
Version Downloads Last Updated
2.3.0 25,399 5/15/2026
2.2.0 739 5/13/2026
2.1.3 41,272 3/7/2026
2.1.2 59,302 1/6/2026
2.1.1 89,137 8/14/2025
2.1.0 856,766 3/20/2024
2.0.3 232,856 2/27/2023
2.0.2 117,329 10/25/2022
2.0.1 6,095 10/5/2022
2.0.0 126,233 9/15/2021
1.2.3 96,461 11/11/2020
1.2.2 287,723 7/31/2020
1.2.1 29,344 7/8/2020
1.2.0 148,378 7/31/2018
1.1.2 5,703 1/15/2018
1.1.1 2,317 1/5/2018
1.1.0 1,687 12/13/2017
1.0.1 1,884 10/17/2017
1.0.0 4,337 9/25/2017