artdaq_node_server  v1_00_08
 All Classes Namespaces Files Variables Pages
/scratch/workspace/artdaq-demo-v2_10_00/SLF7/s48-e14-prof/build/artdaq_node_server/v1_00_08/src/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash/after.js

var saves = ['profile', 'settings'];

var done = _.after(saves.length, function() { console.log('done saving!'); });

_.forEach(saves, function(type) { asyncSave({ 'type': type, 'complete': done }); }); // => Logs 'done saving!' after the two async saves have completed.