MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / run

Method run

src/demoJS/ProgressBarSimpleDemo.java:216–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214
215 Runnable counting = new Runnable() {
216 @Override
217 public void run() {
218 while (!isDone()) { // doing long job
219 try {
220 Thread.sleep(delaySynchronous);
221 } // sleep one second
222 catch (InterruptedException ie) {
223 System.err.println("Thread interrupted.");
224 }
225 onProgress();
226 }
227 onDone();
228 } // end of run
229 };
230
231 public void longJob() {

Callers

nothing calls this directly

Calls 5

isDoneMethod · 0.95
onProgressMethod · 0.95
onDoneMethod · 0.95
sleepMethod · 0.80
printlnMethod · 0.65

Tested by

no test coverage detected