示例#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; }           
示例#2
0
 [ScriptName("when")]   public Promise When(Promise value){ return null; }
示例#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);
 }