public static IEnumerable <TResult> MultiProcessing <T, TResult>(this IEnumerable <Task <T> > enumTask, Func <T, TResult> actDlgt) { var tsks = new EnumeTaskCreator <T>(enumTask); foreach (var item in tsks) { yield return(actDlgt(item)); } }
public static void MultiProcessing <T>(this IEnumerable <Task <T> > enumTask, Action <T> actDlgt) { var tsks = new EnumeTaskCreator <T>(enumTask); foreach (var item in tsks) { actDlgt(item); //yield return item; } }