-
-
Notifications
You must be signed in to change notification settings - Fork 150
Comments on Documentation #82
Comments
Answered my own question. Parameters to .then() must be (done, data)...
It would be good to expand the example to include these lines that consume the data/err results. |
In ASQ, the ( triggerDoneCallback, msg1, msg2, ... ) If you want it to behave like a Alternatively, since you're in this example doing a synchronous step (that is, not needing to return for chaining a sub-sequence) like To summarize, your 3 options are:
|
heh, cross posting. :) |
Thanks for the speedy response. I'm new to promises/ASQ/etc. and don't fully have a sense of how to "speak in Promises" versus how to "speak in asynquence". Here are a couple comments about things that made it hard for me as a newcomer to get started.
NB I also think I got hung up on a npm version problem. asynquence and/or asynquence-contrib didn't install properly, and upgrading npm from 3.3.12 to 3.7.1 did seem to fix things. Thanks again! |
this is great feedback on improving docs, appreciated. however, you've raised several substantial/important issues that need to be addressed. I would prefer you file these as separate issues so we can track them:
Thanks! |
OK. I will take some time to see what I can re-create and file separate bugs as I nail down test cases. (I was in the throes of starting with new technology, and consequently, not paying full attention to what was happening.) Thanks again for your strong support. |
Responding to the items above: I believe the doc's are correct - my troubles with installation came from misreading the docs. A couple things would make it better: a fully-worked example (see 1. below), and a more clear description of require() (2. below)
TL;DR - I think the tweaks above to the documentation would resolve all these problems (except 4.) Thanks. |
Thanks again, fantastic feedback. Will try to digest and make changes as I find some time. :) |
also... s/passsed/passed/g |
Also look at #93. |
Update: Changed subject to reflect the current focus.
I tried out the example at https://github.com/getify/asynquence/blob/master/contrib/README.md#errfcb-plugin that talks about sq.errfcb() plugin. When I execute the code, the parameter passed to .then() doesn't seem to have the desired data. (That's the data which would have been passed as the second parameter of the error-first callback). How is it made available?
Update: added 'utf8' parameter to fs.readFile() so that resulting data is a string, not a buffer.
The text was updated successfully, but these errors were encountered: