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

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -