public static Promise When(Action <Promise> a1, Action <Promise> a2) { var p = new Promise(a1, a2); return(p); }