Exemplo n.º 1
0
 public static Task <IEnumerable <TOutput> > Select <TInput, TOutput>(this Task <IEnumerable <TInput> > tasks, Func <TInput, TOutput> getResult)
 {
     return(tasks.WhenBuilt(t => t.Select(getResult)));
 }
Exemplo n.º 2
0
 public static Task <IEnumerable <TInput> > Where <TInput>(this Task <IEnumerable <TInput> > tasks, Func <TInput, bool> getResult)
 {
     return(tasks.WhenBuilt(t => t.Where(getResult)));
 }
Exemplo n.º 3
0
 public static Task <TP> WhenBuilt <T, TP>(this Task <T> task, Func <T, TP> getValue)
 {
     return(task.WhenBuilt(() => getValue(task.Value)));
 }