Ejemplo n.º 1
0
 /// <summary>
 /// Cancels a task associated with the promise. As a result of this, the promise will be resolved with a rejection.
 /// Returns true if the task hasn't executed yet and was successfully canceled.
 /// </summary>
 [InlineCode("{this}.cancel({promise})")] public bool Cancel(Promise promise) { return false; }           
Ejemplo n.º 2
0
 [ScriptName("when")]   public Promise When(Promise value){ return null; }
Ejemplo n.º 3
0
 /// <summary>
 /// Cancels a task associated with the promise. As a result of this, the promise will be resolved with a rejection.
 /// Returns true if the task hasn't executed yet and was successfully canceled.
 /// </summary>
 [InlineCode("{this}.cancel({promise})")] public bool Cancel(Promise promise)
 {
     return(false);
 }