public static Promise Rejected(Exception exception, bool synchronous) { return(Promise <object> .Rejected(exception, synchronous)); }
public static Promise <T> Resolved <T>(Promise <T> promise) { return(new Promise <T>((resolve, reject) => promise.Then(resolve, reject))); }
public static Promise Rejected(Exception exception) { return(Promise <object> .Rejected(exception)); }
public static Promise <object> Resolved(Promise promise) { return(new Promise <object>((resolve, reject) => promise.Then((r, s) => resolve(r, s), reject))); }