Mercurial > pub > ImplabNet
diff Implab/IPromise.cs @ 96:daffa72a1cec v2
Added the chaining method to the non-generic IPromise
author | cin |
---|---|
date | Thu, 30 Oct 2014 10:06:16 +0300 |
parents | c761fc982e1d |
children | 8ddf1648eca4 |
line wrap: on
line diff
--- a/Implab/IPromise.cs Wed Oct 29 18:54:46 2014 +0300 +++ b/Implab/IPromise.cs Thu Oct 30 10:06:16 2014 +0300 @@ -31,6 +31,10 @@ IPromise Then(Action success, ErrorHandler error); IPromise Then(Action success); + IPromise Chain(Func<IPromise> chained, ErrorHandler<IPromise> error, Action cancel); + IPromise Chain(Func<IPromise> chained, ErrorHandler<IPromise> error); + IPromise Chain(Func<IPromise> chained); + /// <summary> /// Добавляет последнй обработчик в цепочку обещаний, не создает промежуточных обещаний. /// </summary>