Async foreach
[1, 2, 3].forEach(async (num) => { await waitFor(50); console.log(num);});console.log('Done');
Silly Salmon
[1, 2, 3].forEach(async (num) => { await waitFor(50); console.log(num);});console.log('Done');
drop_mviews(mviews, callback) {
var _this9 = this;
async.each(mviews, function (view, next) {
var query = util.format('DROP MATERIALIZED VIEW IF EXISTS "%s";', view);
_this9._driver.execute_definition_query(query, next);
}, function (err) {
if (err) callback(buildError('model.tablecreation.matviewdrop', err));else callback();
});
}