MCPcopy Index your code
hub / github.com/questdb/questdb / sleep

Method sleep

core/src/main/java/io/questdb/std/Os.java:231–244  ·  view source on GitHub ↗
(long millis)

Source from the content-addressed store, hash-verified

229 }
230
231 public static void sleep(long millis) {
232 long t = System.currentTimeMillis();
233 long deadline = millis;
234 while (deadline > 0) {
235 try {
236 Thread.sleep(deadline);
237 break;
238 } catch (InterruptedException e) {
239 long t2 = System.currentTimeMillis();
240 deadline -= t2 - t;
241 t = t2;
242 }
243 }
244 }
245
246 public static native long smokeTest(long a, long b);
247

Callers 15

assertEventuallyMethod · 0.95
assertEventuallyMethod · 0.95
testConcurrentSendersMethod · 0.95
TestListenerClass · 0.95
waitForMethod · 0.95
waitForRegexMethod · 0.95
assertEventuallyMethod · 0.95
testConcurrencyMethod · 0.95
getConnectionMethod · 0.95

Calls

no outgoing calls

Tested by 15

assertEventuallyMethod · 0.76
assertEventuallyMethod · 0.76
testConcurrentSendersMethod · 0.76
waitForMethod · 0.76
waitForRegexMethod · 0.76
assertEventuallyMethod · 0.76
testConcurrencyMethod · 0.76
getConnectionMethod · 0.76
assertWithPgServerMethod · 0.76