MCPcopy Create free account
hub / github.com/traneio/future / delay

Method delay

future-java/src/test/java/io/trane/future/FutureTest.java:619–625  ·  view source on GitHub ↗

delay

()

Source from the content-addressed store, hash-verified

617 /*** delay ***/
618
619 @Test
620 public void delay() throws CheckedFutureException {
621 long delay = 10;
622 long start = System.currentTimeMillis();
623 Future.delay(Duration.ofMillis(delay), scheduler).get(Duration.ofMillis(200));
624 assertTrue(System.currentTimeMillis() - start >= delay);
625 }
626
627 /*** within ***/
628

Callers

nothing calls this directly

Calls 2

delayMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected