SHARE
TWEET

Untitled

a guest Feb 17th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top