On Apr 18, 2014, at 2:52 PM, Kevin Burton <[email protected]> wrote:
> Alex, I think in this case I need to. I have about 20 functions to execute, 
> each of which depends on the side-effects of the previous function. I can 
> basically make it synchronous by making what looks like a big 'V'
> 

Consider a library like FlowJS (easy) or a more complete idea like Promises (Q, 
Bluebird). Many folks like using Async - I find it non-intuitive but it might 
help you. To state what might be obvious, It is important to keep in mind that 
you are not making the function synchronous by using any of these methods 
(i.e., your process is not going to block on the call), but rather, you are 
just structuring your code to avoid the callback hell / pyramid of doom.

        --ravi

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to