I need to call a function synchronously which trigger the event loop to be 
processed before the function returns. Pseudo code:


require('fs').exists('file', function() {
   // This function should be fired even for the while-loop below
});

while(true) {
  runEventLoop();  // process the eventloop, so all asynchronous tasks will 
be run anyway
}


Is there any inbuilt function for that?


Thanks in advance!

-- 
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/08f6b047-e4d1-40ef-97f6-b5b91d82e198%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to