diff --git a/Implab/PromiseT.cs b/Implab/PromiseT.cs --- a/Implab/PromiseT.cs +++ b/Implab/PromiseT.cs @@ -41,9 +41,7 @@ namespace Implab { public class Promise : AbstractPromise, IDeferred { public static IPromise FromResult(T value) { - var p = new Promise(); - p.Resolve(value); - return p; + return new SuccessPromise(value); } public static IPromise FromException(Exception error) {