Created
February 10, 2015 16:24
-
-
Save ufcpp/9334a6ed22ca4994f040 to your computer and use it in GitHub Desktop.
Task of Tuple for async return values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<(int sum, int count)> TallyAsync(IEnumerable<int> values) { ... } | |
var t = await TallyAsync(myValues); | |
Console.WriteLine($"Sum: {t.sum}, count: {t.count}"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment