JavaScript Threading: Quick Tip

A link published by James Bennett on August 2, 2006. Tagged with javascript, pseudo-threading and tips. No comments posted.

You can’t really get a “new thread” in JS, but Mark shows you a simple way to pretend that you can.

The sorts of timing issues that this works around come up more often than you’d think; the AJAX example I’m writing up attacked the problem by building function literals on the fly based on things that were happening in a callback, and then subscribing them to the completion of an animation event :)

Visit site

Comments for this link are closed. If you'd like to share your thoughts on this link with me, please contact me directly.