Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
app.js
require('./second');
require('./first');
second.js:
run = async function() {
console.log('second::run') ;
setTimeout(run, 1000);
}
setTimeout(run, 1000);
first.js
run = async function()
console.log('first::run');
}