We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edac045 commit d8d3727Copy full SHA for d8d3727
Open.ChannelExtensions.Tests/Program.cs
@@ -137,6 +137,22 @@ await Enumerable
137
Console.WriteLine();
138
}
139
140
+#if NETCOREAPP3_0
141
+ {
142
+ Console.WriteLine("Async Enumerable test...");
143
+ var sw = Stopwatch.StartNew();
144
+ await foreach(var e in Enumerable
145
+ .Repeat((Func<int, ValueTask<int>>)Delay, repeat)
146
+ .Select((t, i) => t(i))
147
+ .ToChannelAsync()
148
+ .ReadAllAsync())
149
+ Dummy(e);
150
+ sw.Stop();
151
+ Console.WriteLine(sw.Elapsed);
152
+ Console.WriteLine();
153
+ }
154
+#endif
155
+
156
157
158
static void Dummy(int i)
0 commit comments