gulpjs / bach

Compose your async functions with elegance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Verify arguments to parallel / series

pkozlowski-opensource opened this issue · comments

Passing a non-function (ex. undefined) to series / parallel results in an "obscure" error from underlying libraries. Arguments supplied to parallel / series should probably be verified and an explicit error should be thrown if any of the arguments is not a function.

Happy to send a PR if this makes sense.

I'm good with that. I have been using assert a lot recently to verify arguments. Since it is part of node core, we won't need another dep. A PR for this would be very welcome.