$timeout.cancel()

cancel([promise]);

Cancels a task associated with the promise. As a result of this, the promise will be resolved with a rejection.

Parameters

Param Type Details
promise
(optional)
Promise

Promise returned by the $timeout function.

Returns

boolean

Returns true if the task hasn't executed yet and was successfully canceled.

doc_AngularJS
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.