comparison Implab/IPromise.cs @ 11:6ec82bf68c8e promises

refactoring
author cin
date Tue, 05 Nov 2013 01:09:58 +0400
parents aa33d0bb8c0c
children eb418ba8275b
comparison
equal deleted inserted replaced
10:aa33d0bb8c0c 11:6ec82bf68c8e
22 { 22 {
23 get; 23 get;
24 } 24 }
25 25
26 /// <summary> 26 /// <summary>
27 /// Tries to cancel the promise or the complete chain. 27 /// Tries to cancel the the complete chain of promises.
28 /// </summary> 28 /// </summary>
29 /// <param name="dependencies">Try to cancel the whole promise chain, the parent promise will be cancelled only if it has only one promise</param> 29 /// <returns><c>true</c> - if the promise has been cancelled, otherwise the promise will be resolved (or resolved already).</returns>
30 /// <returns></returns> 30 bool Cancel();
31 bool Cancel(bool dependencies);
32 31
33 /// <summary> 32 /// <summary>
34 /// Registers handler for the case when the promise is cencelled. If the promise already cancelled the 33 /// Registers handler for the case when the promise is cencelled. If the promise already cancelled the
35 /// handler will be invoked immediatelly. 34 /// handler will be invoked immediatelly.
36 /// </summary> 35 /// </summary>