Window: clearImmediate() method
HTML DOM
HTML DOM
This method clears the action specified by window.setImmediate.
Syntax
clearImmediate(immediateID)
Parameters
immediateID- : The ID returned by window.setImmediate.
Return value
None (undefined).
Examples
let immediateID = setImmediate(() => {
// Run some code
});
document.getElementById("button").addEventListener(() => {
clearImmediate(immediateID);
});
Specifications
Not part of any current specifications. The Efficient Script Yielding specification is no longer being worked on.
Browser compatibility
See also
- Polyfill of
clearImmediateincore-js - Window.setImmediate()