XDracam / unity-corelibrary

Collection of classes and extension methods that make life with Unity3D more comfortable
MIT License
15 stars 3 forks source link

Async-compatible Enumerable.ForEach extensions #62

Open Eregerog opened 4 years ago

Eregerog commented 4 years ago
public static async Task ForEach<T>(this IEnumerable<T> source, Func<T, Task> action){
 foreach(var item in source)
  await action(item);
}