Cancels a callback scheduled with scheduleIdleCallback. Works with both requestIdleCallback and setTimeout fallback.
The handle returned by scheduleIdleCallback
const handle = scheduleIdleCallback(() => { console.log('This might not run');});cancelScheduledCallback(handle); Copy
const handle = scheduleIdleCallback(() => { console.log('This might not run');});cancelScheduledCallback(handle);
Generated using TypeDoc
Cancels a callback scheduled with scheduleIdleCallback. Works with both requestIdleCallback and setTimeout fallback.