예제 #1
0
        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));
            }
        }
예제 #2
0
        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;
            }
        }