Created
February 15, 2019 16:18
-
-
Save he-dev/d0a7ff1806eb7b32e98ad35ed1ef7715 to your computer and use it in GitHub Desktop.
SelectManyAsync test-case
This file contains 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
void Main() | |
{ | |
var tasks = new[] | |
{ | |
Task.FromResult(new [] {1, 2, 3}.Select(x => Task.FromResult(x))), | |
Task.FromResult(new [] {4, 5, 6}.Select(x => Task.FromResult(x))), | |
}; | |
tasks.SelectManyAsync().Select(t => t.GetAwaiter().GetResult()).Dump(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment