On Apr 6, 2:38 pm, Mark Hahn <m...@hahnca.com> wrote:
> In any case, here is a loop that runs until cond is true ...
>
> function processOneTick() {
>     // do work for one tick
>     if (!cond)  setTimeout processOneTick, 0}
>
> processOneTick()

May as well use process.nextTick() instead for that approach.

-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to