node async - Meteor didn't stop fibers execution -


i want upload csv file , insert db after huge validation , process. using fibers asynchronous call. fiber process keep executing fiber returns future.wait();.

meteor.methods({   uploadcsv: (calender) {     if (meteor.isserver) {       var future = npm.require('fibers/future');       var future = new future();       calender = parse(calender);       future["return"](savecalender(calender)); //huge process , validation       console.log(future); // { value: 1, resolved: true }       return future.wait();     }   } }); 

savecalender function executes every time. did missed stop fiber execution or how stop fiber execution?


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -