Skip to content

Async auto pass in data from dependency #952

@mlovrovich

Description

@mlovrovich

It would be nice if there was a way to pass in results from a dependency directly into the function.
So instead of doing this:

async.auto({
    a: testFunction,
    b: ['a', function(callback, results){
        testFunction2(results.a, callback);
    }]
})

We could do something like,

async.auto({
    a: testFunction,
    b: ['a', async.apply(testFunction2, <resultsOfA>)]
})

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions