dimanche 29 mars 2015

If a request hit to my socket at '/' route this function gets executed is it posiible to execute this code async?

exports.check= function(fn){



process.nextTick(function(){
while (true) {
setTimeout(function(){iconsole.log('what');fn(1)},15000)
console.log('ok')
}
})


}


Aucun commentaire:

Enregistrer un commentaire