MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / sleep

Method sleep

vm/JavaAPI/src/java/lang/Thread.java:250–250  ·  view source on GitHub ↗

Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds. The thread does not lose ownership of any monitors.

(long millis)

Source from the content-addressed store, hash-verified

248 * Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds. The thread does not lose ownership of any monitors.
249 */
250 public static native void sleep(long millis) throws java.lang.InterruptedException;
251
252 public static void sleep(long millis, int nanos) throws java.lang.InterruptedException {
253 if (millis < 0) {

Callers 15

runMethod · 0.95
closeMethod · 0.95
getSomeDataMethod · 0.95
runMethod · 0.95
runMethod · 0.95
sleepMethod · 0.95
runMethod · 0.95
cancelCurrentMethod · 0.95
runMethod · 0.95
processBackgroundMethod · 0.95
waitForFormMethod · 0.95
pollLoopMethod · 0.95

Calls

no outgoing calls

Tested by 15

runMethod · 0.76
waitForMethod · 0.76
waitForFormTitleImplMethod · 0.76
waitForFormNameImplMethod · 0.76
runScenarioMethod · 0.76
runChecksMethod · 0.76
sleepMethod · 0.76
runMethod · 0.76
runMethod · 0.76
waitForMarkerMethod · 0.76
waitForDeviceRunnerMethod · 0.76