Mercurial > pub > ImplabNet
comparison Implab/IPromiseBase.cs @ 33:b255e4aeef17
removed the reference to the parent from the promise object this allows
resolved promises to release parents and results they are holding.
Added complete set of operations to IPromiseBase interface
Subscribing to the cancellation event of the promise should not affect it's
IsExclusive property
More tests.
author | cin |
---|---|
date | Thu, 10 Apr 2014 02:39:29 +0400 |
parents | 768f7deeb55b |
children |
comparison
equal
deleted
inserted
replaced
32:8eca2652d2ff | 33:b255e4aeef17 |
---|---|
21 | 21 |
22 bool IsCancelled { get; } | 22 bool IsCancelled { get; } |
23 | 23 |
24 IPromiseBase Then(Action success,ErrorHandler error); | 24 IPromiseBase Then(Action success,ErrorHandler error); |
25 IPromiseBase Then(Action success); | 25 IPromiseBase Then(Action success); |
26 IPromiseBase Error(ErrorHandler error); | |
27 IPromiseBase Anyway(Action handler); | |
28 IPromiseBase Finally(Action handler); | |
29 IPromiseBase Cancelled(Action handler); | |
26 | 30 |
27 IPromise<T> Cast<T>(); | 31 IPromise<T> Cast<T>(); |
28 | 32 |
33 void Join(); | |
34 void Join(int timeout); | |
35 | |
29 } | 36 } |
30 } | 37 } |