Mercurial > pub > ImplabNet
diff Implab/Promise.cs @ 74:c4140283575c v2
minor fixes
author | cin |
---|---|
date | Mon, 08 Sep 2014 17:40:46 +0400 |
parents | d67b95eddaf4 |
children | 4439140706d0 |
line wrap: on
line diff
--- a/Implab/Promise.cs Fri Sep 05 00:27:14 2014 +0400 +++ b/Implab/Promise.cs Mon Sep 08 17:40:46 2014 +0400 @@ -447,8 +447,9 @@ } public IPromise<T> Cancelled(Action handler) { - AddHandler(null, null, handler, null); - return this; + var medium = new Promise<T>(this, true); + AddHandler(null, null, handler, medium); + return medium; } /// <summary>