Tuesday, January 24, 2012

How to simulate Thread.sleep in GWT?

Hi,

I'm using GWT 2.4 and writing some test cases uses GwtTestCase. I
want to stall my program for a few seconds at certain points, but the
only way I've seen to do this (using a Timer) is not addressing my
needs. How do I pause my program for a certain number of seconds?

ps - The Timer function is not what I want because all commands after
the Timer's schedule command continue to run. Execution is
interrupted only when the timer goes off.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment