Skip to content

Instantly share code, notes, and snippets.

@he-dev
Created February 15, 2019 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save he-dev/d0a7ff1806eb7b32e98ad35ed1ef7715 to your computer and use it in GitHub Desktop.
Save he-dev/d0a7ff1806eb7b32e98ad35ed1ef7715 to your computer and use it in GitHub Desktop.
SelectManyAsync test-case
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