mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-15 19:40:09 +00:00
Aggregate and ForEach
This commit is contained in:
@@ -34,13 +34,12 @@ namespace NetCoreSandbox
|
||||
|
||||
static async Task Main(string[] args)
|
||||
{
|
||||
var xs = new[] { 1, 10, 100 }.GetEnumerator();
|
||||
while (xs.MoveNext())
|
||||
{
|
||||
new int[] { }.Aggregate((x, y) => x + y);
|
||||
|
||||
}
|
||||
|
||||
Console.WriteLine(xs.MoveNext());
|
||||
|
||||
|
||||
await Task.Yield();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user