The window.cancelIdleCallback() method cancels a callback previously scheduled with window.requestIdleCallback().
cancelIdleCallback(handle)handleThe ID value returned by window.requestIdleCallback() when the callback was established.
None (undefined).
See our complete example in the article Cooperative Scheduling of Background Tasks API.