Skip to content

Instantly share code, notes, and snippets.

@EugeneKostrikov
Last active July 22, 2016 14:36
Show Gist options
  • Save EugeneKostrikov/390f9d4350647829ff8bba54446a5428 to your computer and use it in GitHub Desktop.
Save EugeneKostrikov/390f9d4350647829ff8bba54446a5428 to your computer and use it in GitHub Desktop.
var async = require('async');
async.parallel([
function(done){
while(true){}
},
function(done){
console.log('second running');
setInterval(function(){
console.log('second interval running');
}, 1000);
}
], function(){
console.log('done');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment