TaskTupleAwaiter 1.2.0

Enable using the new Value Tuple structure to write elegant code that allows async methods to be fired in parallel despite having different return types

var (result1, result2) = await (GetStringAsync(), GetGuidAsync());

Based on the work of Joseph Musser https://github.com/jnm2

Install-Package TaskTupleAwaiter -Version 1.2.0
dotnet add package TaskTupleAwaiter --version 1.2.0
<PackageReference Include="TaskTupleAwaiter" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TaskTupleAwaiter --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

TaskTupleAwaiter

Async helper library to allow leveraging the new ValueTuple data types in C# 7.0 to thread and run tasks with disparate return types.

var (result1, result2) = await (GetStringAsync(), GetGuidAsync());

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

NuGet

TaskTupleAwaiter

Async helper library to allow leveraging the new ValueTuple data types in C# 7.0 to thread and run tasks with disparate return types.

var (result1, result2) = await (GetStringAsync(), GetGuidAsync());

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

NuGet

Release Notes

Fix TupleConfiguredTaskAwaitable to wait for all tasks credit to maxbrodin

Version History

Version Downloads Last updated
1.2.0 14,427 7/31/2018
1.1.2 1,741 1/15/2018
1.1.1 297 1/5/2018
1.1.0 213 12/13/2017
1.0.1 289 10/17/2017
1.0.0 292 9/25/2017