예제 #1
0
 public static Action AddWorkUnitReturnBlock(Action workUnit) =>
 ThreadWorkGroup.AddWorkUnit(() =>
 {
     workUnit();
     return(UnitValue);
 }).Let(f => new Action(() => { f(); }));
예제 #2
0
 public static Func <T> AddWorkUnit <T>(Func <T> workUnit) => ThreadWorkGroup.AddWorkUnit(workUnit);