Exemplo n.º 1
0
 public async Task ManualTaskSource(int count)
 {
     for (int i = 0; i < count; i++)
     {
         var source = new ManualResetValueTaskSource <int>();
         source.SetResult(i);
         await source.AsTask();
     }
 }