setImmediate
Module
web.immediate
. setImmediate
polyfill.
function setImmediate(callback: any, ...args: Array<mixed>): number;
function clearImmediate(id: number): void;
CommonJS entry points
core-js(-pure)/stable|actual|full/set-immediate
core-js(-pure)/stable|actual|full/clear-immediate
Examples
setImmediate((arg1, arg2) => {
console.log(arg1, arg2); // => Message will be displayed with minimum delay
}, 'Message will be displayed', 'with minimum delay');
clearImmediate(setImmediate(() => {
console.log('Message will not be displayed');
}));