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
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 8,805 7/31/2018
1.1.2 1,664 1/15/2018
1.1.1 275 1/5/2018
1.1.0 195 12/13/2017
1.0.1 265 10/17/2017
1.0.0 267 9/25/2017