![]() |
VOOZH | about |
dotnet add package TaskTupleAwaiter --version 2.3.0
NuGet\Install-Package TaskTupleAwaiter -Version 2.3.0
<PackageReference Include="TaskTupleAwaiter" Version="2.3.0" />
<PackageVersion Include="TaskTupleAwaiter" Version="2.3.0" />Directory.Packages.props
<PackageReference Include="TaskTupleAwaiter" />Project file
paket add TaskTupleAwaiter --version 2.3.0
#r "nuget: TaskTupleAwaiter, 2.3.0"
#:package TaskTupleAwaiter@2.3.0
#addin nuget:?package=TaskTupleAwaiter&version=2.3.0Install as a Cake Addin
#tool nuget:?package=TaskTupleAwaiter&version=2.3.0Install as a Cake Tool
๐ 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.
// โ 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));
await โ fire multiple async calls in parallel and destructure results with a single awaitConfigureAwait support โ works with ConfigureAwait(false) and .NET 8+ ConfigureAwaitOptionsTask support โ await tuples of Task (not just Task<T>) when you don't need return valuesSystem.ValueTuple on .NET Framework 4.6.2)<IsAotCompatible>true</IsAotCompatible> for .NET 8+ targets, and CI publishes downstream NativeAOT smoke testsdotnet add package TaskTupleAwaiter
Or via the NuGet Package Manager:
Install-Package TaskTupleAwaiter
var (name, age) = await (GetNameAsync(), GetAgeAsync());
var (policy, preferences) = await (
GetPolicyAsync(policyId, cancellationToken),
GetPreferencesAsync(cancellationToken)
).ConfigureAwait(false);
var (user, settings) = await (
GetUserAsync(userId),
GetSettingsAsync()
).ConfigureAwait(ConfigureAwaitOptions.None);
var (a, b, c, d, e) = await (
GetAAsync(),
GetBAsync(),
GetCAsync(),
GetDAsync(),
GetEAsync()
);
await (SendEmailAsync(), LogAuditAsync(), InvalidateCacheAsync());
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.
| Target | Version |
|---|---|
| .NET Standard | 2.0 |
| .NET Framework | 4.6.2+ |
| .NET | 8.0+ |
Based on the original work by Joseph Musser (@jnm2) โ original gist.
ยฉ 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. |
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 |
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 |