$ gnpm install set-immediate-shim
Simple
setImmediate
ponyfill
$ npm install set-immediate-shim
const setImmediateShim = require('set-immediate-shim');
setImmediateShim(() => {
console.log('2');
});
console.log('1');
//=> 1
//=> 2
setImmediate()
MIT © Sindre Sorhus
Copyright 2013 - present © cnpmjs.org | Home |