Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dependecy checking into async.auto #662

Closed
benzen opened this issue Nov 18, 2014 · 2 comments
Closed

Add dependecy checking into async.auto #662

benzen opened this issue Nov 18, 2014 · 2 comments

Comments

@benzen
Copy link

benzen commented Nov 18, 2014

I almost exclusively use async.auto, so maybe this apply to other I can't tell.

It append frequently that i make a async.auto block, refactor it, that thing break because of a savage renaming.

It would be nice if async call final block with error if the dependcy graph is broken. Or throw an exception if there is no final function

async.auto
  "a": (cb, results)-> cb null, "a"
  "c": ["b", (cb,results)-> cb null, "c"]
  (err, results) -> 
    if err then console.log err

This would produce a message like this for exemple:

Depency is unsatisfied "c" expect "b" but no declaration where made for "b"
@aearly
Copy link
Collaborator

aearly commented Dec 2, 2014

#663 seems to fix this.

@benzen
Copy link
Author

benzen commented Dec 2, 2014

Yop great

@benzen benzen closed this as completed Dec 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants