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