Skip to content

Async helper library to allow leveraging the new ValueTuple data types in C# 7.0

License

Notifications You must be signed in to change notification settings

buvinghausen/TaskTupleAwaiter

Repository files navigation

TaskTupleAwaiter

Continuous IntegrationNuGetLicense: MIT

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);