List of usage examples for java.lang Runnable wait
public final native void wait(long timeoutMillis) throws InterruptedException;
From source file:org.openqa.selendroid.server.model.SelendroidWebDriver.java
private void runSynchronously(Runnable r, long timeout) { synchronized (r) { serverInstrumentation.getCurrentActivity().runOnUiThread(r); try {/* w ww. j a v a2 s.com*/ r.wait(timeout); } catch (InterruptedException e) { e.printStackTrace(); } } }
From source file:io.selendroid.server.model.SelendroidWebDriver.java
private void runSynchronously(Runnable r, long timeout) { synchronized (r) { serverInstrumentation.getCurrentActivity().runOnUiThread(r); try {/*from w ww . j a v a2 s .c om*/ r.wait(timeout); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } }