Sunday, 2 April 2017

Synchronous functions

Hello, r/node.I have the following code http://ift.tt/2oN3uqB added the comments to make it easier to understand, and that's the whole point. The fact that all of these steps are asynchronous makes me have to keep on adding more nested callbacks. Is there any way to make these calls synchronous, so i can at least make functions for each step? Not only is this code difficult to read, it will only get worse as complexity grows. Having it synchronously would really help me, since each step needs the last one to be completed anyway.

Submitted April 02, 2017 at 12:01PM by Selhar

No comments:

Post a Comment