- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for test_sleep (0.14 sec)
-
src/test/java/org/codelibs/core/lang/ThreadUtilTest.java
import org.junit.Test; /** * @author shinsuke * */ public class ThreadUtilTest { /** * @throws Exception */ @Test public void test_sleep() throws Exception { ThreadUtil.sleep(1L); assertTrue(true); ThreadUtil.sleepQuietly(1L); } /** * @throws Exception */ @Test
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.1K bytes - Viewed (0) -
src/time/sys_unix.go
func interrupt() { // There is no mechanism in wasi to interrupt the call to poll_oneoff // used to implement runtime.usleep so this function does nothing, which // somewhat defeats the purpose of TestSleep but we are still better off // validating that time elapses when the process calls time.Sleep than // skipping the test altogether. if runtime.GOOS != "wasip1" { syscall.Kill(syscall.Getpid(), syscall.SIGCHLD) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:10 UTC 2023 - 1.4K bytes - Viewed (0)