function onTablesSelected(tables) {
    // Assign partialed functions to make the code slightly more readable
    steps.collect = mapValues(steps.collect, function(method) {
        return partial(method, adapter, { tables: tables });
    });

    // Collect the data in parallel
    async.parallel(steps.collect, onTableDataCollected);
}
function onTablesSelected(tables) {
    
    steps.collect = mapValues(steps.collect, function(method) {
        return partial(method, adapter, { tables: tables });
    });

    
    async.parallel(steps.collect, onTableDataCollected);
}
function onTablesSelected ( tables ) { // Assign partialed functions to make the code slightly more readable steps . collect = mapValues ( steps . collect , function ( method ) { return partial ( method , adapter , { tables : tables } ) ; } ) ; // Collect the data in parallel async . parallel ( steps . collect , onTableDataCollected ) ; }
When tables have been selected, fetch data for those tables
When tables have been selected fetch data for those tables