# HG changeset patch # User cin # Date 2015-03-09 14:21:20 # Node ID e03ccec4a08d7493219c650c474e4111d37236bf # Parent 706fccb8552436e3978cc048a0f6ff7289b7ac0c minor changes 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) {