GwtTestCase has support for waiting until an asynchronous part of the test 
is complete - check out the delayTestFinish(int) and finishTest() methods.

Beyond that, there really is no way to generally pause execution. You can 
use one timer to watch another timer, and call cancel on it if it runs for 
too long, though because JavaScript is singly threaded, you can't cancel 
something already in progress. For that, you want to break up your command 
into smaller pieces (using something like the Scheduler and 
RepeatingCommand).

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

Reply via email to