Mercurial > pub > ImplabNet
diff Implab/IPromiseT.cs @ 242:cbe10ac0731e v3
Working on promises
author | cin |
---|---|
date | Wed, 24 Jan 2018 03:03:21 +0300 |
parents | 8c0b95069066 |
children | fb70574741a1 |
line wrap: on
line diff
--- a/Implab/IPromiseT.cs Tue Jan 23 19:39:21 2018 +0300 +++ b/Implab/IPromiseT.cs Wed Jan 24 03:03:21 2018 +0300 @@ -3,23 +3,10 @@ namespace Implab { public interface IPromise<out T> : IPromise { - IPromise<T> On(Action<T> success, Action<Exception> error, Action<Exception> cancel); - - IPromise<T> On(Action<T> success, Action<Exception> error); - - IPromise<T> On(Action<T> success); + void On(Action<T> success, Action<Exception> error); new T Join(); new T Join(int timeout); - - new IPromise<T> On(Action success, Action<Exception> error, Action<Exception> cancel); - - new IPromise<T> On(Action success, Action<Exception> error); - - new IPromise<T> On(Action success); - - new IPromise<T> On(Action handler, PromiseEventType events); - } }