##// END OF EJS Templates
minor changes
cin -
r146:e03ccec4a08d v2
parent child
Show More
@@ -41,9 +41,7 namespace Implab {
41 public class Promise<T> : AbstractPromise<T>, IDeferred<T> {
41 public class Promise<T> : AbstractPromise<T>, IDeferred<T> {
42
42
43 public static IPromise<T> FromResult(T value) {
43 public static IPromise<T> FromResult(T value) {
44 var p = new Promise<T>();
44 return new SuccessPromise<T>(value);
45 p.Resolve(value);
46 return p;
47 }
45 }
48
46
49 public static IPromise<T> FromException(Exception error) {
47 public static IPromise<T> FromException(Exception error) {
General Comments 0
You need to be logged in to leave comments. Login now