" private boolean tryToContinue() {
if (ttReady && auReady) {
continueStart();
return false;
} else
return true;
}
public void start() {
Scheduler.get().scheduleEntry(new RepeatingCommand() {
@Override
public boolean execute() {
return tryToContinue();
}
});
"
i used "scheduleEntry" because of Javadoc: "This type of command is appropriate for instrumentation or code that needs to know when "something happens." "
But i am unsure about my implementation/ my understanding about scheduler - is the code above correct?
-- 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/-/lzoQaeWpE8kJ.
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