comparison Implab/IPromise.cs @ 10:aa33d0bb8c0c promises

implemeted new cancellable promises concept
author cin
date Sun, 03 Nov 2013 18:07:38 +0400
parents c82e0dfbb4dd
children 6ec82bf68c8e
comparison
equal deleted inserted replaced
9:c82e0dfbb4dd 10:aa33d0bb8c0c
27 /// Tries to cancel the promise or the complete chain. 27 /// Tries to cancel the promise or the complete chain.
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 /// <param name="dependencies">Try to cancel the whole promise chain, the parent promise will be cancelled only if it has only one promise</param>
30 /// <returns></returns> 30 /// <returns></returns>
31 bool Cancel(bool dependencies); 31 bool Cancel(bool dependencies);
32
33 /// <summary>
34 /// Registers handler for the case when the promise is cencelled. If the promise already cancelled the
35 /// handler will be invoked immediatelly.
36 /// </summary>
37 /// <param name="handler">The handler</param>
38 void HandleCancelled(Action handler);
32 } 39 }
33 } 40 }