示例#1
0
 public static Promise Rejected(Exception exception, bool synchronous)
 {
     return(Promise <object> .Rejected(exception, synchronous));
 }
示例#2
0
 public static Promise <T> Resolved <T>(Promise <T> promise)
 {
     return(new Promise <T>((resolve, reject) => promise.Then(resolve, reject)));
 }
示例#3
0
 public static Promise Rejected(Exception exception)
 {
     return(Promise <object> .Rejected(exception));
 }
示例#4
0
 public static Promise <object> Resolved(Promise promise)
 {
     return(new Promise <object>((resolve, reject) =>
                                 promise.Then((r, s) => resolve(r, s), reject)));
 }