You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/AsyncExtensions.cs

21 lines
549 B

using System.Collections.Generic;
using System.Threading.Tasks;
namespace ZeroLevel.Services
{
public static class AsyncExtensions
{
/*public static async IAsyncEnumerable<T> ParallelEnumerateAsync<T>(this IEnumerable<Task<T>> tasks)
{
var remaining = new List<Task<T>>(tasks);
while (remaining.Count != 0)
{
var task = await Task.WhenAny(remaining);
remaining.Remove(task);
yield return (await task);
}
}*/
}
}

Powered by TurnKey Linux.