Page 1 of 1

Create an interrupt in a Gwt-Based class

PostPosted:Tue Aug 14, 2018 12:47 pm
by mamad
hi guys
how can i create an interrupt (pause every thing 1000 miliseconds for example) in a gwt-based class ? i know that we cant use Thread or Runnable and looking for another way.
Thanks in advance

Re: Create an interrupt in a Gwt-Based class

PostPosted:Thu Aug 16, 2018 11:32 am
by jllort
Might be the code blow might help you :
Code: Select all
public void startRefreshingDashboard(double scheduleTime) {
		dashboardRefreshing = new Timer() {
			public void run() {
				refreshAll();
			}
		};

		dashboardRefreshing.scheduleRepeating(new Double(scheduleTime).intValue());
	}