Пример #1
0
 public static CTasks.Task.Executable <R> ToGTask <T, R>(this CTasks.Exec.Executable <T> exec, T defObj = default(T))
 => (obj) => {
     exec(defObj);
     return(null);
 };
Пример #2
0
 public static CTasks.Task.Executable <T> ToGTask <T>(this CTasks.Exec.Executable <T> exec)
 => (obj) => {
     exec(obj);
     return(null);
 };
Пример #3
0
 public static CTasks.Task.Executable ToTask <T>(this CTasks.Exec.Executable <T> exec, T defObj = default(T))
 => () => exec(defObj);
Пример #4
0
 /* -------- To Task-Executable (From Executable) -------- */
 public static CTasks.Task.Executable ToTask(this CTasks.Exec.Executable exec)
 => () => exec();
Пример #5
0
 public static CTasks.Exec.Handleable ToExecHandle <T>(this CTasks.Exec.Executable <T> exec, T defObj = default(T))
 => (state, exceptions) => exec(defObj);
Пример #6
0
 public static CTasks.Exec.Handleable ToExecHandle(this CTasks.Exec.Executable exec)
 => (state, exceptions) => exec();