public static CTasks.Task.Executable <R> ToGTask <T, R>(this CTasks.Exec.Executable <T> exec, T defObj = default(T)) => (obj) => { exec(defObj); return(null); };
public static CTasks.Task.Executable <T> ToGTask <T>(this CTasks.Exec.Executable <T> exec) => (obj) => { exec(obj); return(null); };
public static CTasks.Task.Executable ToTask <T>(this CTasks.Exec.Executable <T> exec, T defObj = default(T)) => () => exec(defObj);
/* -------- To Task-Executable (From Executable) -------- */ public static CTasks.Task.Executable ToTask(this CTasks.Exec.Executable exec) => () => exec();
public static CTasks.Exec.Handleable ToExecHandle <T>(this CTasks.Exec.Executable <T> exec, T defObj = default(T)) => (state, exceptions) => exec(defObj);
public static CTasks.Exec.Handleable ToExecHandle(this CTasks.Exec.Executable exec) => (state, exceptions) => exec();