>
> as @Peter Ferak pointed, it depends on your code, you should read the
> basics about JavaScript and Asynchronous vs synchronous execution.
>
A working example so you can see how it really works.
console.log('calling some async function');
setTimeout(function(){
console.log('Async function 1 finished');
},4);
console.log('calling some async function 2');
setTimeout(function(){
console.log('Async function 2 finished');
},2);
See it working: https://jsfiddle.net/2x5oLx51/
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/2d326fec-d960-42ae-9bb8-c7d488782b8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.