Subj : Re: [Rhino embedded] getting the main thread within JS To : rodney white From : Igor Bukanov Date : Fri Feb 28 2003 12:03 pm rodney white wrote: > I should say that I am a new to this Rhino stuff...that being said I am > trying to figure out a way to get access to causing the main thread to sleep > 1-5 ms during a processing loop. You may subcluss org.mozilla.javascript.Context to override observeInstructionCount where you can put your sleep code. See API docs for the method for details. Regards, Igor .