Window: cancelIdleCallback() method
{{APIRef}}
The window.cancelIdleCallback() method cancels a callback
previously scheduled with {{domxref("window.requestIdleCallback()")}}.
Syntax
cancelIdleCallback(handle)
Parameters
handle- : The ID value returned by
{{domxref("window.requestIdleCallback()")}}when the callback was established.
- : The ID value returned by
Return value
None ({{jsxref("undefined")}}undefined).
Examples
See our complete example in the article Cooperative Scheduling of Background Tasks API.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}