Guest User

Untitled

a guest
Feb 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. void Main()
  2. {
  3. var tasks = new[]
  4. {
  5. Task.FromResult(new [] {1, 2, 3}.Select(x => Task.FromResult(x))),
  6. Task.FromResult(new [] {4, 5, 6}.Select(x => Task.FromResult(x))),
  7. };
  8.  
  9. tasks.SelectManyAsync().Select(t => t.GetAwaiter().GetResult()).Dump();
  10. }
Add Comment
Please, Sign In to add comment